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;

The 'sex' can be accessed by

  1. criminal.sex.

  2. kd -> sex.

  3. (*kd).sex.

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

Reveal answer Fill a bubble to check yourself
A Correct answer