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 method of creating object in C++ ?

0 Answers   Wipro,


Can a class be static in c++?

0 Answers  


What are c++ storage classes?

0 Answers  


How many types of casting are there in C++? When is a dynamic cast,static_cast,reinterpret cast used?

2 Answers   CTS,


how many trys can we write in one class

3 Answers   Cap Gemini,


What does std :: flush do?

0 Answers  


When to use “const” reference arguments in a function?

0 Answers  


How a modifier is similar to mutator?

0 Answers  


What is slicing?

1 Answers  


Tell me an example where stacks are useful?

0 Answers  


Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

0 Answers  


C is to C++ as 1 is to a) What the heck b) 2 c) 10

0 Answers  


Categories