Question
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
int p;
6.
bool a = true;
7.
bool b = false;
8.
int x = 10;
9.
int y = 5;
10.
p = ((x | y) + (a + b));
11.
cout << p;
12.
return 0;
13.
}
What is the value of p?
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
int p;
6.
bool a = true;
7.
bool b = false;
8.
int x = 10;
9.
int y = 5;
10.
p = ((x | y) + (a + b));
11.
cout << p;
12.
return 0;
13.
}
Answer: Option B
Was this answer helpful ?
None.
Was this answer helpful ?
Submit Solution