What is the difference between = and == in C?
Answer Posted / sagar pce
1.> = is an Assignment operator
whereas == is an Comparision or Equality operator
2.> If we go for the = operator the value will be same for
both side i.e; X=Y
for eg. if X=7 then Y=7
but when we go for the == operator the value will show the
result as a true or false
for eg. if X==7 and Y==7
then it return TRUE
| Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
What is cout flush?
What is data structure in c++?
How to give an alternate name to a namespace?
What is lazy initialization in c++?
Which is the best c++ compiler for beginners?
How important is c++?
What is implicit pointer in c++?
How to allocate memory dynamically for a reference?
What is meant by const_cast?
What is abstract keyword in c++?
Which coding certification is best?
Can static member variables be private?
What are advantages of c++?
an integer constant must have atleast one a) character b) digit c) decimal point
How are the features of c++ different from c?