C Programming MCQ

1:

Consider the following program fragment.
static char wer[3][4] = {"bag", "let", "bud"};
char(*ptr)[4] = wer;

In which of the following cases will the character 't' be printed?

A.

 putchar ( * ( * (ptr+1) + 2));

B.

putchar ( * (wer [1] + 2) ) ;

C.

putchar (* (ptr+1) + 2);

D.

none of the above

 

Answer : B

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.