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
How can I recover the file name given an open stream?
What is a program flowchart and how does it help in writing a program?
Is it acceptable to declare/define a variable in a c header?
What do you know about the use of bit field?
What is const and volatile in c?
what is the function of pragma directive in c?
How do you print only part of a string?
What is substring in c?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
What is the difference between functions abs() and fabs()?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
How can you restore a redirected standard stream?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
Explain how many levels deep can include files be nested?