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?

Answers were Sorted based on User's Feedback



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

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

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

Answer / datta khilari

= operator is assignment operator

== is operator comparision two values

Is This Answer Correct ?    4 Yes 2 No

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

Answer / balveer

give the new ans

Is This Answer Correct ?    8 Yes 7 No

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

Answer / kiranmai

= is used to assign the value it is called assignment operator where as
== is used to compare whether the left side and right side values are equal or not

Is This Answer Correct ?    0 Yes 0 No

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

Answer / idofsaikat9

'=' assigns a value to a variable whereas '==' checks whether two values are equal or not

Is This Answer Correct ?    0 Yes 0 No

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

Answer / nashiinformaticssolutions

 =: Assignment operator (e.g., x = 10).
 ==: Equality comparison operator (e.g., if (x == 10)).

Is This Answer Correct ?    0 Yes 0 No

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

Answer / nashiinformaticssolutions

== checks equality; = assigns values.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / glibwaresoftsolutions

 =: Assignment operator (e.g., x = 10).
 ==: Equality comparison operator (e.g., if (x == 10)).

Is This Answer Correct ?    0 Yes 0 No

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

Answer / hr@tgksolutions.com

 =: Assignment operator (e.g., x = 10).
 ==: Equality comparison operator (e.g., if (x == 10)).

Is This Answer Correct ?    0 Yes 0 No

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

Answer / varsha vilas kalebag

== assignment operator
= equal to

Is This Answer Correct ?    8 Yes 17 No

Post New Answer

More C++ General Interview Questions

Explain the properties and principles of oop.

0 Answers  


What is the equivalent of Pascal's Real a) unsigned int b) float c) char

0 Answers  


What is the limitation of cin while taking input for character array?

0 Answers  


Is java easier than c++?

0 Answers  


Why c++ is created?

0 Answers  


Write a function which takes a character array as input and reverses it in place.

2 Answers   Lehman Brothers, Vision Infotech,


What are the uses of c++ in the real world?

0 Answers  


Explain one-definition rule (odr).

0 Answers  


When is the last time you coded in C/C++? What is the most lines of original C/C++ code you have personally written in one project? How confident are you in your ability to write C or C++ without a reference?

1 Answers   Microsoft,


Comment on assignment operator in c++.

0 Answers  


How do you add an element to a set in c++?

0 Answers  


What is long in c++?

0 Answers  


Categories