#include <stdio.h> void demo() { } int main() { return 0; }
Standard input is empty
prog.c: In function ‘main’: prog.c:10:5: error: format ‘%p’ expects argument of type ‘void *’, but argument 2 has type ‘void (*)()’ [-Werror=format=] printf("%p", demo); ^ cc1: all warnings being treated as errors
Standard output is empty