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 an arraylist c++?
What is #include iostream in c++?
What is tellg () in c++?
why is iostream::eof inside a loop condition considered wrong?
what are function pointers?
Explain the purpose of the keyword volatile.
How do you compile the source code with your compiler?
Explain how the virtual base class is different from the conventional base classes of the opps.
What is abstraction with real time example?
What is the syntax for a for loop?
Which software is best for programming?
Write a program which uses functions like strcmp(), strcpy()? etc
I want to write a C++ language program that: 1. 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. The program should work for squares of all side sizes between 1 and 20.
What is an orthogonal base class in c++?
What is meant by forward referencing and when should it be used?