Explain how the following two expressions are different.
Identify the type of operator used in each expression.
ans=9
ans == 9
Answers
Answered by
0
Explanation:
In some High Level Programming Languages single = operator used to assign value to a variable. Ex : a = 5
here variable a stores 5.
Next == operator used in conditional cases, to check if a variable holds certain value. For Ex : if (a == 5)
Similar questions