GAT Subject
Engineering
Computer Science Civil Engineering Chemical Engineering Agricultural Engineering Mechanical Engineering Electronics and Communication
1. | What will be the output of the program in 16 bit platform (Turbo C under DOS)? | |
A. | 0 (Zero) | |
B. | 1990 | |
C. | Garbage value | |
D. | No output | |
Answer: Option B | |
Explanation: | |
Turbo C (Windows): The return value of the function is taken from the Accumulator _AX=1990. But it may not work as expected in GCC compiler (Linux). |
|
Tutorial Link: |