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

Questions 41-45 of 100

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

Question 41

MCQ · Single Correct 1 mark

Consider structure question #41:

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

Answers for question 41

Question 42

MCQ · Single Correct 1 mark

Consider structure question #42:

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

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

Answers for question 42

Question 43

MCQ · Single Correct 1 mark

Consider structure question #43:

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

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

Answers for question 43

Question 44

MCQ · Single Correct 1 mark

Consider structure question #44:

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

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

Answers for question 44

Question 45

MCQ · Single Correct 1 mark

Consider structure question #45:

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

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

Answers for question 45
Scroll to Top