What is the correct interpretation of the following declaration in C++? int…
2018
What is the correct interpretation of the following declaration in C++?
int (*FPTR)(char*)
Answer: C. FPTR is a pointer to a function, which takes character pointer as an argument and returns integer value
- A.
FPTR is a pointer to character
- B.
FPTR is a pointer to a function, which takes character as an argument and returns integer value
- C.
FPTR is a pointer to a function, which takes character pointer as an argument and returns integer value
- D.
FPTR is a function, which takes character pointer as an argument and returns integer pointer
Attempted by 298 students.
Show answer & explanation
Correct answer: C
Loading lesson…