GATE CSE C Programming Practice Test – Structures & Unions | Set 1

Questions 46-50 of 100

Your score 0/100 0 answered
Correct 0 Incorrect 0 Unanswered 100 Accuracy 0%

Question 46

MCQ · Single Correct 1 mark

Consider structure question #46:

CODE
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'?

Answers for question 46

Question 47

MCQ · Single Correct 1 mark

Consider structure question #47:

CODE
struct Item_47 {
    int id;
    char name[10];
};
struct Item_47 it = {47, "GATE"};
struct Item_47 *ptr = ⁢

What is the value of 'ptr->id'?

Answers for question 47

Question 48

MCQ · Single Correct 1 mark

Consider structure question #48:

CODE
struct Item_48 {
    int id;
    char name[10];
};
struct Item_48 it = {48, "GATE"};
struct Item_48 *ptr = ⁢

What is the value of 'ptr->id'?

Answers for question 48

Question 49

MCQ · Single Correct 1 mark

Consider structure question #49:

CODE
struct Item_49 {
    int id;
    char name[10];
};
struct Item_49 it = {49, "GATE"};
struct Item_49 *ptr = ⁢

What is the value of 'ptr->id'?

Answers for question 49

Question 50

MCQ · Single Correct 1 mark

Consider structure question #50:

CODE
struct Item_50 {
    int id;
    char name[10];
};
struct Item_50 it = {50, "GATE"};
struct Item_50 *ptr = ⁢

What is the value of 'ptr->id'?

Answers for question 50
Scroll to Top