How do you declare the following: An array of three pointers to chars An array of three char pointers A pointer to array of three chars A pointer to function which receives an int pointer and returns a float pointer A pointer to a function which receives nothing and returns nothing

Showing Answers 1 - 2 of 2 Answers

visiuna

  • May 19th, 2008
 

thanks for the ans but there are totally five questions. can u give all the ans. Actually i doesnt know the ans. Please to that all ans would be correct.
Thank you

visiuna

  • May 19th, 2008
 

Hi shilpagore,
Thank u for ans's  but there totally 5 questions in that. so if u don't mind pls do read question carefully and can u post the ans's please.
Thank you.

  Was this answer useful?  Yes

hema m

  • Apr 29th, 2013
 

answer for 1 & 2 are same

  Was this answer useful?  Yes

Kunal Wadhwa

  • Sep 14th, 2014
 

An array of three pointers to chars would be char *ptr[3];
Array of three char pointers char *ptr[3];
Pointer to array of three chars char (*ptr)[3];
Pointer to function which receives an int pointer and returns a float pointer float *(*ptr)(int *);
Pointer to function which receives nothing and return nothing void (*ptr)();

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions