GATE CSE C Programming Practice Test – Function & Storage Class | Set 1

Questions 56-60 of 100

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

Question 56

MCQ · Single Correct 1 mark

What is the output of the following C code?

C
#include <stdio.h>
int x = 56;
int main(void) {
    int x = 66;
    {
        int x = 76;
        printf("%d ", x);
    }
    printf("%d", x);
    return 0;
}
Answers for question 56

Question 57

MCQ · Single Correct 2 mark

Consider a function returning a value: 'int calc(int a) { static int s = 57; s += a; return s; }'. What is returned by calling calc(5) twice consecutively?

Answers for question 57

Question 58

MCQ · Single Correct 1 mark

What does the declaration 'extern int arr[58];' inside a function indicate?

Answers for question 58

Question 59

MCQ · Single Correct 2 mark

What is the effect of declaring a function parameter as 'register int count' in C?

Answers for question 59

Question 60

MCQ · Single Correct 1 mark

Which memory segment stores uninitialized global and static variables in C?

Answers for question 60
Scroll to Top