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

Questions 21-25 of 100

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

Question 21

MCQ · Single Correct 1 mark

Consider structure question #21:

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

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

Answers for question 21

Question 22

MCQ · Single Correct 1 mark

Consider structure question #22:

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

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

Answers for question 22

Question 23

MCQ · Single Correct 1 mark

Consider structure question #23:

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

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

Answers for question 23

Question 24

MCQ · Single Correct 1 mark

Consider structure question #24:

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

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

Answers for question 24

Question 25

MCQ · Single Correct 1 mark

Consider structure question #25:

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

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

Answers for question 25
Scroll to Top