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

What are the steps involved in preventing the metastability?

651


What happens if we delay the enabling of Clock signal?

1806


What are the different classification of the timing control?

578


Calculate rise delay of a 3-input NAND gate driving a 3-input NOR gate through a 6mm long and 0.45m wide metal wire with sheet resistance R = 0.065 / and Cpermicron= 0.25 fF/m. The resistance and capacitance of the unit NMOS are 6.5k and 2.5fF. Use a 3 segment -model for the wire. Consider PMOS and NMOS size of reference inverter as 2 and 1 respectively. Use appropriate sizing for the NAND and NOR gate.

3384


What is Noise Margin? Explain the procedure to determine Noise Margin?

1978






what are three regions of operation of MOSFET and how are they used?

676


Insights of a 4bit adder/Sub Circuit?

2847


What is the difference between synchronous and asynchronous reset?

620


What are the various regions of operation of mosfet? How are those regions used?

589


Design an 8 is to 3 encoder using 4 is to encoder?

867


What was your role in the silicon evaluation or product ramp? What tools did you use?

1858


what is Slack?

705


Draw the timing diagram for a SRAM Read. What happens if we delay the enabling of Clock signal?

675


Mention what are the different gates where Boolean logic are applicable?

671


Are you familiar with the term MESI?

2115