Given the two following expressions: (a) val = 3 (b) val==3 (i)How are these two different? (ii) What will be the result of the two if the value of val is 5 initially? if answer I will mark as brainlist answer pls
Answers
Answered by
1
Explanation:
answer for 1
the expression (a) is an assignment expression whereas the (b) is the relational expression that tests for equality
answer for second
the results of (a) will 3 it self and the results of (b) will be 0 because 5 is not equal to 3
hope it was helpful
Similar questions