GAT Subject
Engineering
Computer Science Civil Engineering Chemical Engineering Agricultural Engineering Mechanical Engineering Electronics and Communication
12. | What will be the output of the program? | |
A. | 40 40 | |
B. | 20 40 | |
C. | 20 | |
D. | Error | |
Answer: Option B | |
Explanation: | |
In case of a conflict between a local variable and global variable, the local variable gets priority. |
|
Tutorial Link: |