Q64
What is the value of p in the following C++ code? #include using namespace std; int main() int p; bool a = true; bool b = false; int x = 10; int y = 5; p = ((x | y) + (a + b)); cout << p; return 0;
A.
0
B.
16
AnswerC.
12
D.
2
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board