fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. static void Main(string[] args)
  6. { byte a = 200; int b = -1024; long c = 2;
  7. byte rb = (byte)(a + b * c); uint rui = (uint)(a + b * c);
  8. int ri = (int)(a + b * c); long rl = a + b * c;
  9. Console.WriteLine("In byte " + rb);
  10. Console.WriteLine("In uint " + rui);
  11. Console.WriteLine("In int " + ri);
  12. Console.WriteLine("In long " + rl);
  13. }
  14. }
  15.  
Success #stdin #stdout 0.04s 28120KB
stdin
Standard input is empty
stdout
In byte 200
In uint 4294965448
In int -1848
In long -1848