C-Complicated Declarations MCQ Questions and Answers
C Complicated Declarations MCQ questions with answers help students master the tricky syntax and structure of the C language. In C programming, complex declarations involving pointers, arrays, and functions often confuse beginners during interviews and tests. This topic is essential for students preparing for placement drives, coding interviews, and competitive exams like TCS NQT, Infosys, and Wipro. Practicing these programming questions and answers will strengthen your understanding of declaration rules, precedence, and operator binding. Download C programming MCQs with solutions in PDF format and take free online tests to boost your programming logic and syntax clarity.
C-Complicated Declarations MCQ
Showing 10 of
32 questions
11. What do the following declaration signify? char **argv;
- argv is a pointer to pointer.
- argv is a pointer to a char pointer.
- argv is a function pointer.
- argv is a member of function pointer.
12. What do the following declaration signify? char *scr;
- scr is a pointer to pointer variable.
- scr is a function pointer.
- scr is a pointer to char.
- scr is a member of function pointer.
13. What does the following declaration mean? int (*ptr)[10];
- Array of 10 pointers to integers
- Pointer to an array of 10 integers
- Array of 10 integers
- Pointer to pointer to integer
14. What does the declaration: int *f(); indicate?
- Pointer to function returning integer
- Function returning pointer to integer
- Array of functions
- Illegal declaration
15. What is the meaning of: int (*f)();
- Function returning pointer to integer
- Pointer to function returning integer
- Array of function pointers
- Function taking no arguments returning integer
16. Interpret: char *(*(*a[])())();
- Array of function pointers
- Pointer to array of functions
- Array of pointers to functions returning pointer to function returning pointer to char
- Complex invalid declaration
17. What does void (*signal(int, void (*fp)(int)))(int); declare?
- Pointer to function
- Function returning integer
- Function taking int and function pointer, returning function pointer
- Array of function pointers
18. What is: int *(*ptr)();
- Function returning pointer to pointer
- Pointer to function returning pointer to int
- Array of pointers to integers
- Pointer to array of functions
19. Interpret: int (*(*foo)(void ))[5];
- Function returning pointer to array
- Pointer to function returning pointer to array of 5 integers
- Array of 5 function pointers
- Pointer to array of 5 functions
20. What does: float (*(*x())[5])(); declare?
- Pointer to array of functions
- Function returning pointer to array of 5 pointers to functions returning float
- Array of function pointers returning float
- Pointer to function returning array