Question
char first (int(*)(char,float));
int second(char,float);
Which of the following function invocation is valid?
a.
First(*second);
b.
First(&second);
c.
First(second);
d.
None fo these
Posted under C Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Consider the declarations: char first (int(*)(char,float)); int second(char,float); Which of the following function invocation is valid?
Similar Questions
Discover Related MCQs
Q. In C a pointer variable to an integer can be created by the decalaration
View solution
Q. Which of the following is most appropriate?
View solution
Q. A pointer variable can be
View solution
Q. a→b is syntactically correct if
View solution
Q. The statement
if ( myPtr != NULL )
*myPtr = NULL;
else
*myPtr = NULL;
has the same effect as the statements(s)
View solution
Q. Consider the following program fragment.
static char wer[3][4] = {"bag", "let", "bud"};
char(*ptr)[4] = wer;
The possible output of printf ( "%d %d", wer, wer +1); is
View solution
Q. The operators > and < are meaningful when used with pointers, if
View solution
Q. Choose the best answer. Prior to using a pointer variable
View solution
Q. Consider the two declarations
void *voidPtr;
char *charPtr;
Which of the following assignments are syntactically correct?
View solution
Q. Which of the following operators can be applied to pointer variable(s)?
View solution
Q. Pick the correct answers.
If x is an one dimensional array, then
View solution
Q. Let x be an array. Which of the following cannot be present in the left hand side of an assignment statement?
View solution
Q. Consider the declarations:
char first (int (*) (char, float)) ;
int second(char, float);
Which of the following function invocation is valid?
View solution
Q. A function q that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as
View solution
Q. If func is a function needing three arguments a1, a2, a3 then func can be invoked by
View solution
Q. The declaration
int (*p) [5];
means
View solution
Q. Consider the declaration
int a = 5, *b = &a;
The statement
printf("%d", a * b);
prints
View solution
Q. calloc(m, n); is equivalent to
View solution
Q. If p is a pointer to an integer and t is a pointer to a character then sizeof (p) will be
View solution
Q. Which of the following comments about arrays and pointers is/are not true?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!