Computer Science, asked by ritiarora75, 9 months ago

how are the following two expressions different ans=8 ans==8​

Answers

Answered by OkuraZeus
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