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 a pointer how and when is it used?
Which programming language's unsatisfactory performance led to the discovery of c++?
Carry out conversion of one object of user-defined type to another?
Describe the syntax of single inheritance in C++?
Is oops and c++ same?
What are containers in c++?
What is data structure in c++?
What is format for defining a structure?
Explain container class.
Is java the same as c++?
Difference between strdup and strcpy?
What are the vectors in c++?
What is implicit pointer in c++?
How important is c++?
What is the difference between *p++ and (*p)++ ?