Answer:Consider the following code snippet:
int p;
string s("Pass");
bool k;
if(s=="pass")
{
k=true;
}
p=true+50+false;
cout<<p;
What will be the output on executing the above code?
Options
a) Error as the Boolean values cannot be added
b) 51
c) 52
d) No output
Answer : b) 51