C Programming - Complicated Declarations
Exercise "Success has many fathers, while failure is an orphan."
- (Proverb)
1.
Is following declaration is correct?typedef *void (*pfun)(**int, *float);
Answer: Option B
Explanation:
No answer description available for this question. Let us discuss .
2.
Is following declaration is correct?char (* ( *f())[])();
Answer: Option A
Explanation:
f is a function that returns a pointer to an array of pointers to functions that return a char .
3.
Is following declaration is correct?char far *far *ptr ;
Answer: Option A
Explanation:
ptr is a far pointer to a far pointer to a char . (or) ptr contains a far address of a far pointer to a char
4.
Is following declaration is correct?void(*f)(int, void(*)());
Answer: Option B
Explanation:
f is a pointer to a function which returns nothing and receives as its parameter an integer and a pointer to a function which receives nothing and returns nothing.
5.
Are the following declarations same?
char far *far *scr;
char far far** scr;
Answer: Option D
Explanation:
No answer description available for this question. Let us discuss .