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
What is meant by forward referencing and when should it be used?
Can you pass a vector to a function?
Can a Structure contain a Pointer to itself?
What is a syntax in c++?
What is operator overloading in c++ example?
What are compilers in c++?
Name four predefined macros.
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
How do you flush a buffer in c++?
What is the difference between prefix and postfix versions of operator++()?
What is the importance of mutable keyword?
Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---
Why is swift so fast?
Can you overload the operator+ for short integers?
When you overload member functions, in what ways must they differ?