GAT Subject
Engineering
Computer Science Civil Engineering Chemical Engineering Agricultural Engineering Mechanical Engineering Electronics and Communication
7. | What is the output of the program? | |
A. | 0 | |
B. | 1 | |
C. | Error | |
D. | None of above | |
Answer: Option B | |
Explanation: | |
Since x < y turns to be TRUE it is replaced by 1. Then 1 < z is compared and to be TRUE. The 1 is assigned to i. |
|
Tutorial Link: |