pointer-test.c:7:3: warning: format ‘%p’ expects type ‘void * ’, but argument 2 has type ‘int * ’
Same goes for using -std=c99 instead of -ansi, although casting to (void *) does get rid of the warning.
pointer-test.c:7:3: warning: format ‘%p’ expects type ‘void * ’, but argument 2 has type ‘int * ’
Same goes for using -std=c99 instead of -ansi, although casting to (void *) does get rid of the warning.