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

In C programming, what command or code can be used to determine if a number of odd or even?

829


Why use int main instead of void main?

854


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

1969


What do you mean by keywords in c?

888


Wt are the Buses in C Language

2962


show how link list can be used to repersent the following polynomial i) 5x+2

1901


What is the use of c language in real life?

771


What are variables c?

815


What is the use of volatile?

825


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

879


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

2216


What is the use of linkage in c language?

824


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

820


5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

1839


Why & is used in c?

923