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 / aman

* First of all = is a assignment operator and == is a comparision operator.
* = operator is used to assign value to a variable and == operator is used to compare two variable or constants.
* The left side of = operator can not be a constant, while for == operator both sides can be operator.

http://www.cplusplus.com/forum/general/18183/

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we declare a base-class destructor as virtual?

1070


What is ios in c++?

1261


Write a program which uses Command Line Arguments

1232


Write a function to find the nth item from the end of a linked list in a single pass.

1021


How the endl and setw manipulator works?

1054


what do you mean by volatile variable?

1106


what is upcasting in C++?

1234


What is setw manipulator in c++?

1123


What is the difference between function overloading and operator overloading?

1171


What is c++ array?

1192


What are the two types of comments?

1048


What is java and c++?

1226


Explain the static member function.

1226


How do you flush std cout?

1147


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

1380