C and DS Gate Questions and Answers
Practice ModeShowing 10 of 29 questions
Q1
Declare the following statement?
"An array of seven pointers to chars".
Answer: Option B
Q2
Declare the following statement?
"A pointer to an array of seven chars".
Answer: Option D
Q3
What do the following declaration signify?
char *arr[7];
Answer: Option A
Q4
What do the following declaration signify?
void *foo();
Answer: Option C
Q5
What do the following declaration signify?
int *ptr[7];
Answer: Option B
Q6
What do the following declaration signify?
int (*foo)();
Answer: Option C
Q7
Declare the following statement?
"A pointer to a function which receives an int pointer and returns float pointer".
Answer: Option C
Q8
Declare the following statement?
"A pointer to a function which receives nothing and returns nothing".
Answer: Option D
Q9
What do the following declaration signify?
int *foo();
Answer: Option B
Q10
What do the following declaration signify?
void (*foo)();
Answer: Option D