GAT Subject
Engineering
Computer Science Civil Engineering Chemical Engineering Agricultural Engineering Mechanical Engineering Electronics and Communication
9. | What will be the output of the program? | |
A. | Print 10 | |
B. | Print 20 | |
C. | Print 1 | |
D. | Compile error | |
Answer: Option D | |
Explanation: | |
There is an error in this line i>=45 ? return(*p): return(*q);. We cannot use return keyword in the terenary operators. |
|
Tutorial Link: |