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

Write a program to find the reverse Fibonacci series starting from N.

0 Answers   Huawei,


Define upcasting.

0 Answers  


How would you differentiate between a pre and post increment operators while overloading?

0 Answers  


What is class in c++ with example?

0 Answers  


Describe linked list using C++ with an example.

0 Answers  


What's the order in which the local objects are destructed?

0 Answers  


How does the copy constructor differ from the assignment operator (=)?

0 Answers  


How to implement flags?

2 Answers   Symphony,


write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

0 Answers  


Explain polymorphism?

0 Answers  


Does dev c++ support c++ 11?

0 Answers  


Explain explicit container.

0 Answers  


Categories