adplus-dvertising
frame-decoration

Question

What does the following statement mean?
int (*fp)(char*)

a.

pointer to a pointer

b.

pointer to an array of chars

c.

pointer to function taking a char* argument and returns an int

d.

function taking a char* argument and returning a pointer to int

Answer: (c).pointer to function taking a char* argument and returns an int

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What does the following statement mean? int (*fp)(char*)

Similar Questions

Discover Related MCQs

Q. The operator used for dereferencing or indirection is ____

Q. Choose the right option
string* x, y;

Q. Which one of the following is not a possible state for a pointer.

Q. Which of the following is illegal?

Q. The correct statement for a function that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to a integer is

Q. Which of the following correctly declares an array?

Q. What is the index number of the last element of an array with 9 elements?

Q. What is a array?

Q. Which of the following accesses the seventh element stored in array?

Q. Which of the following gives the memory address of the first element in array?

Q. What is meaning of following declaration?
int(*p[5])();

Q. What is size of generic pointer in C++ (in 32-bit platform) ?

Q. The constants are also called as

Q. What are the parts of the literal constants?

Q. How the constants are declared?

Q. Which of the following statement is not true about preprocessor directives?

Q. Regarding following statement which of the statements is true?
const int a = 100;

Q. The difference between x and ‘x’ is

Q. How to declare a wide character in string literal?

Q. Which value we cannot assign to reference?