prog.c:3:15: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
void swap(int &a, int &b){
^
prog.c: In function ‘main’:
prog.c:15:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=]
printf("%d %d\n", &a, &b);
^
prog.c:15:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int *’ [-Wformat=]
prog.c:17:2: warning: implicit declaration of function ‘swap’ [-Wimplicit-function-declaration]
swap(a,b);
^