[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Interview Questions and Answers :: Ericsson

6. Tell me what are the following declarations
void (*func) (int)
int *(*func)[10] (int)
int *(*func[10]) (int *)

Answer:

void (*func) (int) => "func" is a pointer to function with argument as int and return void

int *(*func)[10] (int) => func is a pointer to function with argument as int and returning as array of pointer.

int *(*func[10]) (int *) => "func" is a array 10 of function pointer with argument as int pointer and return pointer to int.

Post Your Answer Here:      Public      Private

Rate This: +1 -0
Report     

Post Your Reply Here:     

Report Error

Report Error

Please Login First Click Here