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

Questions 16-20 of 100

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

Question 16

MCQ · Single Correct 1 mark

Consider structure question #16:

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

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

Answers for question 16

Question 17

MCQ · Single Correct 1 mark

Consider structure question #17:

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

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

Answers for question 17

Question 18

MCQ · Single Correct 1 mark

Consider structure question #18:

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

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

Answers for question 18

Question 19

MCQ · Single Correct 1 mark

Consider structure question #19:

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

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

Answers for question 19

Question 20

MCQ · Single Correct 1 mark

Consider structure question #20:

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

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

Answers for question 20
Scroll to Top