-
What is the output of this program?
#include <iostream>
using namespace std;
int main()
{
int Number1 = 7;
int Number2 = 5;
if ( Number1 && Number2 )
{
cout << "True"<< endl ;
}
else
{
cout << "False"<< endl ;
}
return 0;
}
-
- Compilation Error
- False
- Runtime Error
- True
- None of these
Correct Option: D
&& is called as Logical AND operator, if there is no zero in the operand means, it will be true otherwise True.