are the two statements same A=5, A==5
Answers
Answered by
2
Assignment Operator (=)
= is an Assignment Operator in C, C++ and other programming languages, It is Binary Operator which operates on two operands.
= assigns the value of right side expression’s or variable’s value to the left side variable.
Equal To Operator (==)
== is an Equal To Operator in C and C++ only, It is Binary Operator which operates on two operands.
== compares value of left and side expressions, return 1 if they are equal other will it will return 0.
Similar questions