Exercise: Complicated Declarations

Questions for: Complicated Declarations

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.
Answer: C
No answer description is available. Let's discuss.
What do the following declaration signify?
char **argv;
A:
argv is a pointer to pointer.
B:
argv is a pointer to a char pointer.
C:
argv is a function pointer.
D:
argv is a member of function pointer.
Answer: B
No answer description is available. Let's discuss.
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 .
Answer: D
No answer description is available. Let's discuss.
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.
Answer: B
No answer description is available. Let's discuss.
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)()
Answer: D
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz