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

Questions 36-40 of 100

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

Question 36

MCQ · Single Correct 1 mark

Consider structure question #36:

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

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

Answers for question 36

Question 37

MCQ · Single Correct 1 mark

Consider structure question #37:

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

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

Answers for question 37

Question 38

MCQ · Single Correct 1 mark

Consider structure question #38:

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

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

Answers for question 38

Question 39

MCQ · Single Correct 1 mark

Consider structure question #39:

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

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

Answers for question 39

Question 40

MCQ · Single Correct 1 mark

Consider structure question #40:

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

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

Answers for question 40
Scroll to Top