CPP

CPP

Pointers has 3 Questions

What does the following statement mean?

 int (*fp)(char*)


pointer to a pointer
pointer to an array of chars
pointer to function taking a char* argument and returns an int
function taking a char* argument and returning a pointer to int
The operator used for dereferencing or indirection is __

*
&
->
__>>
What is the output of this program?
  1.     #include 
  2.     using namespace std;
  3.     int main()
  4.     {
  5.         int a = 5, b = 10, c = 15;
  6.         int *arr[ ] = {&a, &b, &c};
  7.         cout << arr[1];
  8.         return 0;
  9.     }

5
10
15
it will return some random number