Sail E0 Webinar
Question


What is the output of this program?


1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
int a = 0;
6.
int b = 10;
7.
if ( a && b )
8.
{
9.
cout
Options:
A .  true
B .  false
C .  error
D .  None of the mentioned
Answer: Option B

&& is called as Logical AND operator, if there is no zero in the operand means, it will be true


Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers