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
Write a program to reverse a given number in c language?
What is an auto keyword in c?
What is a sequential access file?
What is the difference between functions abs() and fabs()?
What is variables in c?
Explain 'far' and 'near' pointers in c.
How can I make sure that my program is the only one accessing a file?
What is a program?
Explain the use of 'auto' keyword in c programming?
What is header file definition?
which is an algorithm for sorting in a growing Lexicographic order
Is void a keyword in c?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
formula to convert 2500mmh2o into m3/hr
Where are the auto variables stored?