What is the difference between = and == in C?

Answer Posted / nila

= this is assignment operator.it is used to assign a
variable to variable and assign a value to variable.
== this is comparison iperator.it is used to compare any
two variable and values.

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ slower than c?

569


What is ofstream c++?

583


Why do we use vector in c++?

592


Write a recursive program to calculate factorial in c++.

605


What is implicit pointer in c++?

594






In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

671


How many different levels of pointers are there?

652


Explain about Garbage Collector?

642


Explain the register storage classes in c++.

662


How do you invoke a base member function from a derived class in which you have not overridden that function?

580


Explain Text Manipulation Routines?

641


What is the difference between a "copy constructor" and an "assignment operator" in C++?

614


Write about the access privileges in c++ and also mention about its default access level?

612


Can class objects be passed as function arguments?

597


What does iomanip mean in c++?

597