C Programming Questions and Answers:: Complicated Declarations

What do the following declaration signify?



void *cmp();
A. cmp is a pointer to an void type.
B. cmp is a void type pointer variable.
C cmp is a function that return a void pointer.
D. cmp function returns nothing.

Declare the following statement?



"A pointer to a function which receives nothing and returns nothing".
A.

void *(ptr)*int;
B.

void *(*ptr)()
C

void *(*ptr)(*)
D.

void (*ptr)()

What do the following declaration signify?



int *f();
A. f is a pointer variable of function type.
B. f is a function returning pointer to an int.
C f is a function pointer.
D. f is a simple declaration of pointer variable.

What do the following declaration signify?



char *scr;
A. scr is a pointer to pointer variable.
B. scr is a function pointer.
C scr is a pointer to char.
D. scr is a member of function pointer.

What do the following declaration signify?



void (*cmp)();
A. cmp is a pointer to an void function type.
B. cmp is a void type pointer function.
C cmp is a function that return a void pointer.
D. cmp is a pointer to a function which returns void .

Page 1 of 5