What is the difference between = and == in C?
Answer Posted / aman
* First of all = is a assignment operator and == is a comparision operator.
* = operator is used to assign value to a variable and == operator is used to compare two variable or constants.
* The left side of = operator can not be a constant, while for == operator both sides can be operator.
http://www.cplusplus.com/forum/general/18183/
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Can we declare a base-class destructor as virtual?
What is ios in c++?
Write a program which uses Command Line Arguments
Write a function to find the nth item from the end of a linked list in a single pass.
How the endl and setw manipulator works?
what do you mean by volatile variable?
what is upcasting in C++?
What is setw manipulator in c++?
What is the difference between function overloading and operator overloading?
What is c++ array?
What are the two types of comments?
What is java and c++?
Explain the static member function.
How do you flush std cout?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.