Complicated Declarations on C related Questions and Answers

Question 5 : Declare the following statement?
''A pointer to a function which receives nothing and returns nothing''.
1. void *(ptr)*int;
2. void *(*ptr)()
3. void *(*ptr)(*)
4. void (*ptr)()
View Answer   Discuss with Members

Question 7 : Declare the following statement?
''A pointer to a function which receives an int pointer and returns float pointer''.
1. float *(ptr)*int;
2. float *(*ptr)(int)
3. float *(*ptr)(int*)
4. float (*ptr)(int)
View Answer   Discuss with Members

Question 10 : Declare the following statement?
''A pointer to an array of three chars''
1. char *ptr[3]();
2. char (*ptr)*[3];
3. char (*ptr[3])();
4. char (*ptr)[3];
View Answer   Discuss with Members


View 1 - 10 of 12 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter