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


Please Help Members By Posting Answers For Below Questions

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?

1026


Write a C program to count the number of email on text

1689


What is the benefit of using an enum rather than a #define constant?

957


Can we add pointers together?

833


How can I get the current date or time of day in a c program?

981


Can a pointer be volatile in c?

740


Can a pointer point to null?

806


What is a file descriptor in c?

836


What are enumerated types?

864


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

1081


What is the difference between variable declaration and variable definition in c?

829


What is difference between stdio h and conio h?

1120


Discuss the function of conditional operator, size of operator and comma operator with examples.

912


What are header files in c?

830


How is a structure member accessed?

851