Sail E0 Webinar

MCQs

Total Questions : 35 | Page 4 of 4 pages
Question 31.

What do the following declaration signify?

int (*pf)();


  1.    pf is a pointer to function.
  2.    pf is a function pointer.
  3.    pf is a pointer to a function which return int
  4.    pf is a function of pointer variable.
 Discuss Question
Answer: Option C. -> pf is a pointer to a function which return int


Question 32.

Declare the following statement?
"A pointer to an array of three chars".


  1.    char *ptr[3]();
  2.    char (*ptr)*[3];
  3.    char (*ptr[3])();
  4.    char (*ptr)[3];
 Discuss Question
Answer: Option D. -> char (*ptr)[3];


Question 33.

What do the following declaration signify?

int *ptr[30];


  1.    ptr is a pointer to an array of 30 integer pointers.
  2.    ptr is a array of 30 pointers to integers.
  3.    ptr is a array of 30 integer pointers.
  4.    ptr is a array 30 pointers.
 Discuss Question
Answer: Option B. -> ptr is a array of 30 pointers to integers.


Question 34.

What do the following declaration signify?

char *arr[10];


  1.    arr is a array of 10 character pointers.
  2.    arr is a array of function pointer.
  3.    arr is a array of characters.
  4.    arr is a pointer to array of characters.
 Discuss Question
Answer: Option A. -> arr is a array of 10 character pointers.


Question 35.

Declare the following statement?
"An array of three pointers to chars".


  1.    char *ptr[3]();
  2.    char *ptr[3];
  3.    char (*ptr[3])();
  4.    char **ptr[3];
 Discuss Question
Answer: Option B. -> char *ptr[3];


Latest Videos

Latest Test Papers