GATE CSE C Programming Practice Test – Data Types & Operators | Set 1

Questions 26-30 of 100

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

Question 26

MCQ · Single Correct 1 mark

What is the output of this code?

C
#include <stdio.h>
int num = 100;
void modify(void) {
    int num = 50;
}
int main(void) {
    modify();
    printf("%d", num);
    return 0;
}
Answers for question 26

Question 27

MCQ · Single Correct 1 mark

What is the linkage of a local variable declared inside a C function block?

Answers for question 27

Question 28

MCQ · Single Correct 1 mark

Which of the following functions correctly swaps two integer values in C?

Answers for question 28

Question 29

MCQ · Single Correct 1 mark

What does 'void func(void)' explicitly specify in a C prototype?

Answers for question 29

Question 30

MCQ · Single Correct 1 mark

What memory segment stores uninitialized global and uninitialized static variables?

Answers for question 30
Scroll to Top