C Programming - Complicated Declarations - Discussion
|
|
|
|
Read more:"Success has many fathers, while failure is an orphan."
- (Proverb)
|
| 6. |
Declare the following statement?
"A pointer to a function which receives an int pointer and returns float pointer". |
| [A]. |
float *(ptr)*int;
| [B]. |
float *(*ptr)(int)
| | [C]. |
float *(*ptr)(int*)
| [D]. |
float (*ptr)(int)
|
Answer: Option B
Explanation:
No answer description available for this question.
|
|
Mohini said:
(Tue, Jan 18, 2011 10:48:18 AM)
|
|
| |
| Simple trick: 'Pointer' word is used 3 times. So somehow manage to get * three times in your answer. |
|
Rams said:
(Fri, Jul 8, 2011 01:54:07 PM)
|
|
| |
| Superb. |
|
Pardhu said:
(Tue, Aug 30, 2011 11:04:07 AM)
|
|
| |
| Nice trick you told. |
|
Pradeep Rai said:
(Tue, Nov 22, 2011 02:05:14 PM)
|
|
| |
| Simple answer i.e. function declered as pointer function which recieve intger type pointer as argument and returns float type pointer. |
|
|