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
What are the characteristics of friend functions?
How can I disable the "echo" feature?
What is a singleton class c++?
What is the difference between the functions rand(), random(), srand() and randomize()?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
Can we make copy constructor private in c++?
Can recursive program be written in C++?
Can we run c program in turbo c++?
What is a breakpoint?
Will a catch statement catch a derived exception if it is looking for the base class?
What is c++ namespace?
Tell me difference between constant pointer and pointer to a constant.
What is a type library?
Can notepad ++ run c++?
Can c++ be faster than c?