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
Define the operators that can be used with a pointer.
What are features of c++?
Is multimap sorted c++?
What is stack unwinding?
Is atoi safe?
What is pointer -to-members in C++? Give their syntax?
Explain the purpose of the keyword volatile.
What is c++ library?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
What are the uses of static class data?
If dog is a friend of boy, is boy a friend of dog?
What is time_t c++?
How would you use the functions randomize() and random()?
What is the advantage of c++ over c?
What information can an exception contain?