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
What do nonglobal variables default to a) auto b) register c) static
What is a rooted hierarchy?
What are the differences between malloc() and calloc()?
Who created c++?
What are the advantages of using pointers in a program?
What do you know about near, far and huge pointer?
Difference between strdup and strcpy?
What are protected members in c++?
What are c++ templates used for?
Can we make copy constructor private in c++?
Keyword mean in declaration?
Explain the isa and hasa class relationships.
When are exception objects created?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.