void func(char*,int&);//A function returning no value and taking a char and reference to int as arguments.
typedef void (*PTR)(char*,int&);//A pointer to function returning no value and taking a char and reference to int as arguments.
void Func2(PTR);//A Function taking such a pointer as argument.
PTR Func3();//A Function returning such a pointer.
//Write Definitions of Function taking such a pointer as an Argument and //returning the function.
PTR FUNC4(PTR val)
{
return val;
}
Apart from that here is another code
typedef int (&rifii) (int,int);
I assume that it is a reference to a function returning int and taking 2 ints as arguments.
I am unable to understand How and where will such a pointer be useful?