fork download
  1. #include <iostream>
  2.  
  3. int main ()
  4. {
  5. unsigned int u = -1U ;
  6. std::cout << u << '\n' ;
  7. int i = u ;
  8. std::cout << i << '\n' ;
  9. }
  10.  
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
4294967295
-1