What is the difference between = and == in C?
Answer Posted / kiranmai
= is used to assign the value it is called assignment operator where as
== is used to compare whether the left side and right side values are equal or not
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
What is a class template?
What is a multimap c++?
Where Malloc(), Calloc(), and realloc() does get memory?
Is c++ the most powerful language?
How does list r; differs from list r();?
Is java the same as c++?
What is static function? Explain with an example
What is meant by the term name mangling in c++?
What is the header file for setw?
How do you establish a has-a relationship?
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
Can we define function inside main in c++?
What is the use of register keyword with the variables?
What data encapsulation is in c++?