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

Answer Posted / vaibhav meena

= is assignment operator. It is used to assigne a value to a
variable.
and == is a comparison operator is is used to compare to values.

Is This Answer Correct ?    27 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by volatile and mutable keywords used in c++?

576


Explain class invariant.

582


What is the default width for ouputting a long integer using the insertion operator?

683


Which function should be used to free the memory allocated by calloc()?

587


There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.

2528






What is a float in c++?

537


Describe about storage allocation and scope of global, extern, static, local and register variables?

723


What is c++ w3school?

620


what are the events occur in intr activated on interrupt vector table

1174


Using a smart pointer can we iterate through a container?

554


What is pointer with example?

558


What is c++ programming language?

570


can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is somewhere #include #include #include using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "<

1637


What are the stages in the development cycle?

570


Which function cannot be overloaded c++?

573