A
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;
}
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 - Option(A)
- Views: 17
- Filed under category C++
- Hashtags:
Discusssion
Login to discuss.