fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i = 5;
  5. int *p = &i;
  6.  
  7. printf("memory location of ptr: %p\n", &p);
  8. return 0;
  9. }
  10.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:7:2: error: format ‘%p’ expects argument of type ‘void *’, but argument 2 has type ‘int **’ [-Werror=format=]
  printf("memory location of ptr: %p\n",  &p);
  ^
cc1: all warnings being treated as errors
stdout
Standard output is empty