Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Define the operators that can be used with a pointer.

993


What are features of c++?

1102


Is multimap sorted c++?

952


What is stack unwinding?

1061


Is atoi safe?

1009


What is pointer -to-members in C++? Give their syntax?

983


Explain the purpose of the keyword volatile.

1102


What is c++ library?

992


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

1017


What are the uses of static class data?

1118


If dog is a friend of boy, is boy a friend of dog?

930


What is time_t c++?

1064


How would you use the functions randomize() and random()?

1021


What is the advantage of c++ over c?

967


What information can an exception contain?

1093