Vidyalelo
C Programming · Q210

Pointer

Programming · C Programming · question 210

Q210

Comment on the following declaration. 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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board