int a=0,b=2;
if (a=0)
b=0;
else
b=*10;
What is the value of b ?

Answer Posted / sandeep kumar

if (a=0)
is a wrong statement.
Since it should be
if (a==0)

so, it will throw an error

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c programming hard?

576


Explain the advantages and disadvantages of macros.

624


Differentiate between static and dynamic modeling.

620


Explain what are header files and explain what are its uses in c programming?

626


What is a pointer in c?

683






How to Throw some light on the splay trees?

621


What is structure in c language?

619


Difference between linking and loading?

695


Explain what are bus errors, memory faults, and core dumps?

791


Explain bitwise shift operators?

632


Function calling procedures? and their differences? Why should one go for Call by Reference?

635


What is volatile keyword in c?

583


What is sizeof int in c?

602


Explain high-order bytes.

676


Can you please explain the difference between malloc() and calloc() function?

619