fork(7) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. uint data = uint.Parse("12345678");
  8. byte[] bytes = new[] {
  9. (byte)((data>>24) & 0xFF)
  10. , (byte)((data>>16) & 0xFF)
  11. , (byte)((data>>8) & 0xFF)
  12. , (byte)((data>>0) & 0xFF)
  13. };
  14. Console.WriteLine("{0:x} {1:x} {2:x} {3:x}", bytes[0], bytes[1], bytes[2], bytes[3]);
  15. }
  16. }
Success #stdin #stdout 0.04s 24160KB
stdin
Standard input is empty
stdout
0 bc 61 4e