fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a = 6;
  5. printf("%p", (void*)a);
  6. return 0;
  7. }
  8.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:14: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
 printf("%p", (void*)a);
              ^
cc1: all warnings being treated as errors
stdout
Standard output is empty