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

Questions 11-15 of 100

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

Question 11

MCQ · Single Correct 1 mark

Consider structure question #11:

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

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

Answers for question 11

Question 12

MCQ · Single Correct 1 mark

Consider structure question #12:

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

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

Answers for question 12

Question 13

MCQ · Single Correct 1 mark

Consider structure question #13:

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

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

Answers for question 13

Question 14

MCQ · Single Correct 1 mark

Consider structure question #14:

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

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

Answers for question 14

Question 15

MCQ · Single Correct 1 mark

Consider structure question #15:

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

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

Answers for question 15
Scroll to Top