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

Write a program for Overriding.

921


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2253


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

1847


How is a macro different from a function?

873


What is openmp in c?

788


how to create duplicate link list using C???

2281


Why is c so popular?

887


what is recursion in C

831


Explain the priority queues?

844


What is the use of the function in c?

798


Tell me what are bitwise shift operators?

891


What are enumerated types?

858


What is the difference between malloc calloc and realloc in c?

900


What is the use of typedef in structure in c?

726


What is %d called in c?

950