GATE CSE C Programming Practice Test – Data Types & Operators | 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 value of 'val' after executing 'int val = (3 + 4, 5 * 2, 8 - 3);'?

Answers for question 96

Question 97

NAT · Numerical Answer 1 mark

What is the output of this C code snippet?

C
#include <stdio.h>
int main(void) {
    int a = 10;
    int *p = &a;
    *p = 25;
    printf("%d", a);
    return 0;
}
Answers for question 97

Question 98

NAT · Numerical Answer 1 mark

What is the value of 'res' after evaluating 'int res = 100 >> 3;'?

Answers for question 98

Question 99

NAT · Numerical Answer 1 mark

How many elements are in an array declared as 'int matrix[3][4][5];'?

Answers for question 99

Question 100

NAT · Numerical Answer 1 mark

What is the output of the C code?

C
#include <stdio.h>
int main(void) {
    int a = 10, b = 20;
    a = a ^ b;
    b = a ^ b;
    a = a ^ b;
    printf("%d", a);
    return 0;
}
Answers for question 100
Scroll to Top