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 pointer to array in c++?
Explain the static member function.
Is java as fast as c++?
In c++, what is the difference between method overloading and method overriding?
Const char *p , char const *p What is the difference between the above two?
Explain function overloading
Why is swift so fast?
What does std :: flush do?
Which should be more useful: the protected and public virtuals?
Why the usage of pointers in C++ is not recommended ?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
Can a built-in function be recursive?
Explain terminate() function?
What are c++ variables?