Programming MCQS - QUESTION DETAILS

How do you declare a function pointer in C?
A. int (*funcPtr)();
B. int funcPtr();
C. (*int funcPtr)();
D. int *funcPtr();

'int (*funcPtr)();' declares a function pointer in C.

Similar Questions

How do you include a header file in C?






What is the role of the 'strcpy' function in C?






What is the entry point for the execution of a Java program?






Which of the following is not a primitive data type in Java?






How do you open a file for writing in C?






What is the purpose of the 'strcat' function in C?






How do you achieve multiple inheritance in Java?






What is the purpose of the 'continue' statement in a loop?






What is the role of the 'static' keyword in C?






What is the purpose of the 'throws' keyword in Java?