Q. What will be the output of the following code snippet?

Code:
#include <stdio.h>
void solve() {
    bool ok = false;
    printf(ok ? "YES" : "NO");
}
int main() {
    solve();
	return 0;
}
  • (A) Yes
  • (B) No
  • (C) Compilation Error
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) Compilation Error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
216
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Manisha Agrawal
Publisher
πŸ“ˆ
96%
Success Rate