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 do nonglobal variables default to a) auto b) register c) static

1190


What is a rooted hierarchy?

1217


What are the differences between malloc() and calloc()?

1244


Who created c++?

1115


What are the advantages of using pointers in a program?

1190


What do you know about near, far and huge pointer?

1217


Difference between strdup and strcpy?

1252


What are protected members in c++?

1178


What are c++ templates used for?

1177


Can we make copy constructor private in c++?

1094


Keyword mean in declaration?

1119


Explain the isa and hasa class relationships.

1100


When are exception objects created?

1124


an operation between an integer and real always yeilds a) integer result b) real result c) float result

1213


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

2748