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