Explain following declaration
int *P(void);
and
int (*p)(char *a);
Answer Posted / tibu
int *p(void) - says this is function with null parameter
and returns a pointer to an integer.
int (*p)(char *a) - says this is function with a pointer to
a char a as parameter and returns a pointer to an integer.
Is This Answer Correct ? | 19 Yes | 19 No |
Post New Answer View All Answers
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
Write a C program to count the number of email on text
What is the benefit of using an enum rather than a #define constant?
Can we add pointers together?
How can I get the current date or time of day in a c program?
Can a pointer be volatile in c?
Can a pointer point to null?
What is a file descriptor in c?
What are enumerated types?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
What is the difference between variable declaration and variable definition in c?
What is difference between stdio h and conio h?
Discuss the function of conditional operator, size of operator and comma operator with examples.
What are header files in c?
How is a structure member accessed?