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

stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1841


Explain what is wrong with this program statement?

614


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

649


Lists the benefits of c programming language?

585


What are the 4 types of functions?

563






Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2112


What is n in c?

569


What is file in c language?

572


what are the different storage classes in c?

658


Can include files be nested? How many levels deep can include files be nested?

649


What is the deal on sprintf_s return value?

639


What is a program flowchart and how does it help in writing a program?

653


In which header file is the null macro defined?

845


What is chain pointer in c?

595


Where we use clrscr in c?

693