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;
}
β
Correct Answer: (C)
Compilation Error