#include <stdio.h> int main(void) { int i = 5; int *p = &i; printf("memory location of ptr: %p\n", &p); return 0;}
Standard input is empty
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
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!