Question 41
Consider structure question #41:
struct Item_41 {
int id;
char name[10];
};
struct Item_41 it = {41, "GATE"};
struct Item_41 *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 41.