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

Answer Posted / akash

The value of b will be 20.

Because when a=0 is presented in if condition, it will take it as false condition. So the else block will execute.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to reverse a given number in c language?

620


What is an auto keyword in c?

641


What is a sequential access file?

648


What is the difference between functions abs() and fabs()?

649


What is variables in c?

607






Explain 'far' and 'near' pointers in c.

706


How can I make sure that my program is the only one accessing a file?

678


What is a program?

665


Explain the use of 'auto' keyword in c programming?

681


What is header file definition?

567


which is an algorithm for sorting in a growing Lexicographic order

1394


Is void a keyword in c?

578


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

597


formula to convert 2500mmh2o into m3/hr

498


Where are the auto variables stored?

626