prog.c:4:14: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
int* tmp(int &a, int &b)
^
prog.c:12:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
void main(){
^
prog.c: In function ‘main’:
prog.c:16:5: warning: implicit declaration of function ‘tmp’ [-Wimplicit-function-declaration]
printf("i = %d \n",*tmp(i,j));
^
prog.c:16:24: error: invalid type argument of unary ‘*’ (have ‘int’)
printf("i = %d \n",*tmp(i,j));
^