C Programming - Complicated Declarations - Discussion
|
|
|
|
Read more:"To err is human; to forgive, divine."
- Alexander Pope
|
| 8. |
Declare the following statement?
"A pointer to a function which receives nothing and returns nothing". |
| [A]. |
void *(ptr)*int;
| [B]. |
void *(*ptr)()
| | [C]. |
void *(*ptr)(*)
| [D]. |
void (*ptr)()
|
Answer: Option A
Explanation:
No answer description available for this question.
|
|
Saran said:
(Tue, Sep 13, 2011 02:26:57 PM)
|
|
| |
| Simple trick is that there is only one pointer is mentioned and pointer is represented by *. So the answer is void(*ptr)(). |
|
Manas said:
(Sun, Dec 4, 2011 01:46:19 PM)
|
|
| |
| @Saran you are great. |
|
|