how are the following two expressions different ans=8 ans==8
Answers
Answered by
10
Explanation:
Ans = 8 is a assignment.
Ans == 8 is a comparison, if suppose it's used in an if statement, if(Ans == 8) Ans += 2;
Similar questions