C Programming MCQ

1:

Consider the following declaration. 

struct addr 
{
char city [10];
char street [20]; 
int pincode; 
};
struct 
{
char name[20];
int sex; 
struct addr locate;
} criminal, *kd * &criminal;

*(kd —> name + 2) can be used instead of

A.

* (criminal .name + 2)

B.

* ( (*kd) .name + 2)

C.

Both (a) & (b)

D.

either (a) or (b), but not (c)

 

Answer : C

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.