Question: Answer the next 4 questions, based on the following declaration. struct addr char city [10); char street [20]; int pincode; struct char name [20]; int

Answer the next 4 questions, based on 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; 198. sex can be accessed by (a) criminal.sex (c) (*kd).sex (b) kd sex (d) either) or (c), but not by (b) 199. pincode can be accessed by (a) criminal.locate.pincode (b) criminal.pincode (c) kd locate.pincode (d) kd.locate + pincode 200. The third character in the criminal name can be accessed by (a) criminal.name [2] (b) kd - name [2] (c) ((*kd) .name) [2] (d) either (b) or (c), but not by (a) 201. * (kd name + 2) can be used instead of (a) * (criminal.name + 2) (b) kd + (name + 2) (c)*(( kd) .name 2) (d) either (a) or (b), but not (c)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
