What is the difference between = and == in C?
Answer Posted / mallika
= is used to assign the values to the variables.
Eg:- int a=5,b;
b=a;
== is used for comparison purpose.
Eg:- if(a==b)
continue;
| Is This Answer Correct ? | 31 Yes | 6 No |
Post New Answer View All Answers
What are c++ storage classes?
What is the use of endl in c++?
Explain deep copy?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
How do you decide which integer type to use?
What are the vectors in c++?
What is the basic difference between C and C++?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
What are the basic data types used in c++?
Define whitespace in C++.
What is static in c++?
What is std :: flush?
Show the declaration for a static member variable.
What is c++ w3school?