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

Questions 21-25 of 100

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

Question 21

MCQ · Single Correct 1 mark

What compile-time result occurs when initializing 'static int s = x;' where 'x' is a local auto variable?

Answers for question 21

Question 22

MCQ · Single Correct 1 mark

Which storage class specifier restricts global variable visibility solely to the current translation unit (.c file)?

Answers for question 22

Question 23

MCQ · Single Correct 1 mark

What is the purpose of the 'extern' keyword in variable declarations?

Answers for question 23

Question 24

MCQ · Single Correct 1 mark

What will happen if you apply the address-of operator (&) to a variable declared with 'register' storage class?

Answers for question 24

Question 25

MCQ · Single Correct 1 mark

What happens when a function returns the address of a local automatic variable?

Answers for question 25
Scroll to Top