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

Questions 31-35 of 100

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

Question 31

MCQ · Single Correct 1 mark

Consider structure question #31:

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

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

Answers for question 31

Question 32

MCQ · Single Correct 1 mark

Consider structure question #32:

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

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

Answers for question 32

Question 33

MCQ · Single Correct 1 mark

Consider structure question #33:

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

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

Answers for question 33

Question 34

MCQ · Single Correct 1 mark

Consider structure question #34:

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

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

Answers for question 34

Question 35

MCQ · Single Correct 1 mark

Consider structure question #35:

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

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

Answers for question 35
Scroll to Top