Computer Science, asked by omkumarjani1994, 1 month ago

What does the statement "if(sum=num)" mean?

Answers

Answered by Anonymous
2

The statement is actually incorrectly written as this will return an int value.

The correct statement should be if(sum==num) which returns a boolean value.

If the value of the variable sum is equal to the value of variable num, then true is returned and the control executes all statements present within the if block of the statement given.

Similar questions