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