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

Questions 26-30 of 100

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

Question 26

MCQ · Single Correct 1 mark

Consider structure question #26:

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

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

Answers for question 26

Question 27

MCQ · Single Correct 1 mark

Consider structure question #27:

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

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

Answers for question 27

Question 28

MCQ · Single Correct 1 mark

Consider structure question #28:

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

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

Answers for question 28

Question 29

MCQ · Single Correct 1 mark

Consider structure question #29:

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

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

Answers for question 29

Question 30

MCQ · Single Correct 1 mark

Consider structure question #30:

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

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

Answers for question 30
Scroll to Top