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 / anita sachdeva

= operator in C language is used to assign the value of
right-hand side value/variable/expression to the left hand
side variable.

== operator in C/C++ language is used to check the value of
left hand variable/expression with the right hand
variable/expression. whether the two values are equal or
not. It returns true if these are equal else it will return
false.

Is This Answer Correct ?    312 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by iomanip in c++?

1220


What is the benefit of learning c++?

993


Do the names of parameters have to agree in the prototype, definition, and call to the function?

1031


What would happen on forgetting [], while deallocating an array through new?

1092


What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

1137


Explain the concept of memory leak?

1115


If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?

1104


What is the exit function in c++?

989


When there is a global variable and local variable with the same name, how will you access the global variable?

1101


If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

1041


Do class declarations end with a semicolon?

1084


What is the outcome of cout< a) 16 b) 17 c) 16.5

1019


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

1067


What causes a runtime error c++?

1128


Explain about Garbage Collector?

1122