Teaching Haryana (HPSC) Assistant Professor Mock Test 2025 Programming and Data Structure Programming in C
Consider the below code written in a programming language that support variables, doesn't allow nested declarations of functions and uses dynamic scoping:
#include
int i = 300, j = 100;
int F(int x) {
int i = 20;
printf("%d", x + i);
i = 220;
j = 50;
return x;
}
void main () {
F(i + j);
}
1
420
2
700
3
50
4
Error
5
Question Not Attempted