What is the value of p in the following C++ code snippet?#include iostreamusing 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;}
Not registered? Create an account
Forgot Password?
Already a registered user? Login