Question: What was the result of #include using namespace std; int main ( ) { int a = 5 , b = 1 0 , c

What was the result of
#include
using namespace std;
int main(){
int a =5, b =10, c =0;
bool result =(a < b) && (b > c)||(c > a);
cout << "Result: "<< result << endl;
return 0;
}
a. Result : 20
b. Result: 1
c. Result: 5
d. Compile time error

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!