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
What is a double c?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
Explain what are compound statements?
Why is c called c?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
What are the advantages of c language?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
How can you find the day of the week given the date?
int i=10; printf("%d %d %d", i, i=20, i);
What is difference between main and void main?
Explain the difference between #include "..." And #include <...> In c?
Explain what are bus errors, memory faults, and core dumps?
What is c language used for?
Is sizeof a keyword in c?
What is static memory allocation?