C++ FLOW CONTROL | C++ FOUNDATION Question 6

Last Updated :
Discuss
Comments

What will be the output of the following C++ code?

#include <iostream>
using namespace std;
int main() {
if (0) {
cout << "GEEKSFORGEEKS" ;
}
else
{
cout << "geeksforgeeks" ;
}
return 0;
}

GEEKSFORGEEKS

geeksforgeeks

Compilation Error

No Output

Share your thoughts in the comments