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
Is that possible to store 32768 in an int data type variable?
Multiply an Integer Number by 2 Without Using Multiplication Operator
What are the different types of endless loops?
c program for searching a student details among 10 student details
Explain how can I convert a number to a string?
Why is structure padding done in c?
If the size of int data type is two bytes, what is the range of signed int data type?
What is a c token and types of c tokens?
What are actual arguments?
Explain what are the advantages and disadvantages of a heap?
What is null pointer constant?
What is an array in c?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
When c language was developed?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?