prog.c:3:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
void main(){
^~~~
prog.c: In function ‘main’:
prog.c:6:6: error: expected identifier or ‘(’ before ‘&’ token
int &refer=value; // 에러
^
prog.c:12:23: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘int *’ [-Wformat=]
printf("pointer=%#010x\n", pointer);
^
prog.c:13:23: error: ‘refer’ undeclared (first use in this function)
printf("refer=%d\n", refer); // 에러
^~~~~
prog.c:13:23: note: each undeclared identifier is reported only once for each function it appears in
prog.c:22:23: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘int *’ [-Wformat=]
printf("pointer=%#010x\n", pointer);
^