What is the difference between = and == in C?
Answer Posted / anita sachdeva
= operator in C language is used to assign the value of
right-hand side value/variable/expression to the left hand
side variable.
== operator in C/C++ language is used to check the value of
left hand variable/expression with the right hand
variable/expression. whether the two values are equal or
not. It returns true if these are equal else it will return
false.
| Is This Answer Correct ? | 312 Yes | 21 No |
Post New Answer View All Answers
Define 'std'.
What is unary operator? List out the different operators involved in the unary operator.
What is a c++ object?
What is pure virtual function?
What is vector processing?
What is a sequence in c++?
What is type of 'this' pointer? Explain when it is get created?
Are strings mutable in c++?
What is c++ good for?
What is the best ide for c++?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
What is enum c++?
What is the identity function in c++? How is it useful?
What is the use of setprecision in c++?
What is :: operator in c++?