Describe the difference between = and == symbols in C programming?

Trainee Asked on November 4, 2019 in C Language.
Add Comment
1 Answer(s)

‘==’ is the comparison operator which is used to compare the value or expression on the left-hand side with the value or expression on the right-hand side.

‘=’ is the assignment operator which is used to assign the value of the right-hand side to the variable on the left-hand side.

Reviewer Answered on November 4, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.