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

Questions 96-100 of 100

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

Question 96

NAT · Numerical Answer 1 mark

What is the output value printed by the program?

C
#include <stdio.h>
struct Val {
    int x;
};
int main(void) {
    struct Val v = {192};
    struct Val *p = &v;
    printf("%d", p->x);
    return 0;
}
Answers for question 96

Question 97

NAT · Numerical Answer 1 mark

What is the output value printed by the program?

C
#include <stdio.h>
struct Val {
    int x;
};
int main(void) {
    struct Val v = {194};
    struct Val *p = &v;
    printf("%d", p->x);
    return 0;
}
Answers for question 97

Question 98

NAT · Numerical Answer 1 mark

What is the output value printed by the program?

C
#include <stdio.h>
struct Val {
    int x;
};
int main(void) {
    struct Val v = {196};
    struct Val *p = &v;
    printf("%d", p->x);
    return 0;
}
Answers for question 98

Question 99

NAT · Numerical Answer 1 mark

What is the output value printed by the program?

C
#include <stdio.h>
struct Val {
    int x;
};
int main(void) {
    struct Val v = {198};
    struct Val *p = &v;
    printf("%d", p->x);
    return 0;
}
Answers for question 99

Question 100

NAT · Numerical Answer 1 mark

What is the output value printed by the program?

C
#include <stdio.h>
struct Val {
    int x;
};
int main(void) {
    struct Val v = {200};
    struct Val *p = &v;
    printf("%d", p->x);
    return 0;
}
Answers for question 100
Scroll to Top