fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. unsigned long int k = 0xffffffff;
  8. cout<<(int) * (int*) &k<<endl;
  9. printf("%x\n",(int) * (int*) &k);
  10. cout<<k<<endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
-1
ffffffff
4294967295