# Answer to Question #38425 in C++ for subodh

Question #38425

Evaluate the following C++ expressions (assume x = -1, y = 2):

(i) x > y

(ii) x+y >= y

(i) x > y

(ii) x+y >= y

Expert's answer

Answer on Question 38425 – Programming – C++

Evaluate the following C++ expressions (assume x = -1, y = 2):

(i) x > y is false, because -1 is less than 2

(ii) x+y >= y is false, because x+y=1 and 1 is less than 2

Evaluate the following C++ expressions (assume x = -1, y = 2):

(i) x > y is false, because -1 is less than 2

(ii) x+y >= y is false, because x+y=1 and 1 is less than 2

## Comments

## Leave a comment