Question 11
Consider structure question #11:
struct Item_11 {
int id;
char name[10];
};
struct Item_11 it = {11, "GATE"};
struct Item_11 *ptr = ⁢What is the value of 'ptr->id'?
Detailed Solution
The pointer 'ptr' targets structure instance 'it'. Dereferencing via 'ptr->id' retrieves the value assigned to field 'id', which is 11.