"Write the definition of a function that takes such a pointer as an argument and returns its argument as the return value."
Output:Code:// decs2.cc int main() { void f1(char*, int&); void (*pf1)(char*, int&); typedef void (*PF1) (char*, int&); typedef void (*PF1_ARG) (char*, int&); PF1 rp_pf1(PF1_ARG a) { // no good return a; } }
Thanks.Code:decs2.cc: In function `int main()': decs2.cc:11: syntax error before `{' token