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

Questions 6-10 of 100

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

Question 6

MCQ · Single Correct 1 mark

Consider structure question #6:

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

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

Answers for question 6

Question 7

MCQ · Single Correct 1 mark

Consider structure question #7:

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

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

Answers for question 7

Question 8

MCQ · Single Correct 1 mark

Consider structure question #8:

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

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

Answers for question 8

Question 9

MCQ · Single Correct 1 mark

Consider structure question #9:

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

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

Answers for question 9

Question 10

MCQ · Single Correct 1 mark

Consider structure question #10:

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

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

Answers for question 10
Scroll to Top