A

Admin • 833K Points
Coach

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;
}
  • (A) 16
  • (B) 15
  • (C) 0
  • (D) True
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category C++
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.