Q. What is the value of “i”?
Code:
#include <iostream>
using namespace std;
int main()
{
int i;
bool x = true;
bool y = false;
int a = 10;
int b = 5;
i = ((a | b) + (x + y));
cout << i;
return 0;
}
β
Correct Answer: (A)
16