What will the value of the result variable be after the code segment below has been run.
bool result ;
int number3 = 11, number5 = 21, number9 = 32;
result = number3 <= number5 && number3 == number9 ;
SOLUTION TO THE ABOVE QUESTION
The value of the result is 0 for false
CODE
#include<iostream>
using namespace std;
int main()
{
bool result ;
int number3 = 11, number5 = 21, number9 = 32;
result = number3 <= number5 && number3 == number9 ;
cout<<"The value of the result is: "<<result<<endl;
return 0;
}
CODE OUTPUT
Comments
Leave a comment