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 vectors in c++?
How to declare an array of pointers to integer?
Is there a c++ certification?
What are c++ templates used for?
What is a responder chain?
What is ios :: in in c++?
What parameter does the constructor to an ofstream object take?
What are the various access specifiers in c++?
How would perform Pattern Matching in C++?
Can circle be called an ellipse?
Ask to write virtual base class code?
Explain rethrowing exceptions with an example?
What is a string example?
write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)
Why are pointers not used in c++?