Explain following declaration
int *P(void);
and
int (*p)(char *a);

Answer Posted / vijay

int* p(void) means p is a function that takes no argument a
return a pointer to integer.
int (*p)(char*a) means that p is a pointer to function that
take character pointer as argument and return an integer.

Is This Answer Correct ?    56 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can't I perform arithmetic on a void* pointer?

853


what is the syallabus of computer science students in group- 1?

2092


What is the use of getch ()?

868


What are the differences between Structures and Arrays?

893


Can you please explain the difference between strcpy() and memcpy() function?

834


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

1989


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1204


What is the use of gets and puts?

799


What is the difference between array and linked list in c?

890


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

2981


What is extern storage class in c?

737


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

865


What is array in c with example?

899


What are the advantages of using new operator as compared to the function malloc ()?

1091


What is the right type to use for boolean values in c?

841