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

Answer Posted / sunita

1. First of all = is a assignment operator and == is a
comparision operator
2.= give you the same vale like x=y means if x=5 then y=5
on the otehr hand if x==y then it will give you the true or
false
eg if x==5
y==5
then return true

Is This Answer Correct ?    98 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the characteristics of friend functions?

559


How can I disable the "echo" feature?

601


What is a singleton class c++?

540


What is the difference between the functions rand(), random(), srand() and randomize()?

723


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

630






Can we make copy constructor private in c++?

591


Can recursive program be written in C++?

626


Can we run c program in turbo c++?

578


What is a breakpoint?

555


Will a catch statement catch a derived exception if it is looking for the base class?

554


What is c++ namespace?

708


Tell me difference between constant pointer and pointer to a constant.

624


What is a type library?

681


Can notepad ++ run c++?

538


Can c++ be faster than c?

594