Sail E0 Webinar
Question


What will be the output of this program?


1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
int a = 8;
6.
cout << "ANDing integer 'a' with 'true' :"" << a && true;
7.
return 0;
8.
}
Options:
A .  integer 'a' with 'true' :8
B .  ANDing integer 'a' with 'true' :0
C .  ANDing integer 'a' with 'true' :1
D .  None of the mentioned
Answer: Option A

None.



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers