Multiple choice

Directions: Answer the following question based on the following declaration. struct { char city[10]; char street[20]; int pincode; } addr; struct { char name[20]; int sex ; addr locate; } criminal,*kd = &criminal;

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

  1. *( criminal.name + 2)

  2. kd -> (name + 2)

  3. *((*kd).name + 2)

  4. either (2) or (3), but not by (1)

Reveal answer Fill a bubble to check yourself
A Correct answer