What is the difference between = and == in C?
Answer Posted / anita sachdeva
= operator in C language is used to assign the value of
right-hand side value/variable/expression to the left hand
side variable.
== operator in C/C++ language is used to check the value of
left hand variable/expression with the right hand
variable/expression. whether the two values are equal or
not. It returns true if these are equal else it will return
false.
Is This Answer Correct ? | 312 Yes | 21 No |
Post New Answer View All Answers
When can I use a forward declaration?
What are the various arithmetic operators in c++?
What is a forward referencing and when should it be used?
Specify different types of decision control statements?
Why do we use templates?
Explain the concept of friend function in c++?
What is c++ in english?
What is void pointer in c++ with example?
What is abstraction in c++?
What is decltype c++?
What is difference between c++ and c ++ 14?
What is a dynamic binding in c++?
What is setiosflags c++?
What is expression parser in c++
Do you know the use of vtable?