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
Which of the following is evaluated first: a) && b) || c) !
Define anonymous class.
What is a pointer with example?
How can you tell what shell you are running on unix system?
Why is "using namespace std;" considered bad practice?
What do you mean by vtable and vptr in c++?
Define stacks. Provide an example where they are useful.
Explain the difference between overloading and overriding?
What gives the current position of the put pointer?
What does namespace mean in c++?
What is const in c++?
What is c++ virtual inheritance?
What is the most common mistake on c++ and oo projects?
Comment on c++ standard exceptions?
How would you use the functions sin(), pow(), sqrt()?