Question: 3- Given this code (2 pts) int n = 5; bool x = (8 < n < 7); What does C++ guarantee to be the
3- Given this code (2 pts)
int n = 5;
bool x = (8 < n < 7);
What does C++ guarantee to be the value of x? Why?
4- What is printed in the following code? Why ?. (2 pts)
#include
using namespace std;
int main() {
double x = 10 / 4 + 1 / 3;
cout << x;
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
