Comment on the following declaration.
int (*ptr)(); // i)
char *ptr[]; // ii)
int (*ptr)(); // i)
char *ptr[]; // ii)
A. Both i) and ii) and cannot exist due to same name
B. i) is legal, ii) is illegal
C. i) is illegal, ii) is legal
D. Both i) and ii) will work legal and flawlessly
Answer: Option D
Join The Discussion