What is the difference between = and == in C?

Answer Posted / d.sreenu

= is assignment operator & == is equality operator in C
= operator is used to assign a value to the variable
== operator is used to compare two variables.

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Draw the Cross Section of an Inverter? Clearly show all the connections between M1 and poly, M1 and diffusion layers etc?

2958


Explain Basic Stuff related to Perl?

705


Insights of a 4bit adder/Sub Circuit?

2946


Explain Process technology? What package was used and how did you model the package/system? What parasitic effects were considered?

700


Explain how logical gates are controlled by Boolean logic?

741






How can you model a SRAM at RTL Level?

5362


If the current through the poly is 20nA and the contact can take a max current of 10nA how would u overcome the problem?

790


Explain the Working of a 2-stage OPAMP?

816


Basic Stuff related to Perl?

2495


Draw a CMOS Inverter. Explain its transfer characteristics

770


Explain how MOSFET works?

2891


why is the number of gate inputs to CMOS gates usually limited to four?

908


Explain the Charge Sharing problem while sampling data from a Bus?

4302


What are the different gates where boolean logic are applicable?

674


How does Vbe and Ic change with temperature?

3062