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
Why can't I perform arithmetic on a void* pointer?
what is the syallabus of computer science students in group- 1?
What is the use of getch ()?
What are the differences between Structures and Arrays?
Can you please explain the difference between strcpy() and memcpy() function?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
What is the use of gets and puts?
What is the difference between array and linked list in c?
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
What is extern storage class in c?
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
What is array in c with example?
What are the advantages of using new operator as compared to the function malloc ()?
What is the right type to use for boolean values in c?