fork download
  1. #include <stdio.h>
  2.  
  3. void * foo(){
  4. return -1;
  5. }
  6. int main(void) {
  7. int *p = (int *) foo();
  8. printf("%d\n", p);
  9. printf("%u\n", p);
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
-1
4294967295