πŸ“Š C++
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) 16

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
281
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
82%
Success Rate