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 the use of bit field?
What is struct node in c?
What does == mean in texting?
How can I split up a string into whitespace-separated fields?
What is the use of header files?
Write a progarm to find the length of string using switch case?
Which function in C can be used to append a string to another string?
Are global variables static in c?
Explain high-order and low-order bytes.
What is the purpose of sprintf() function?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
What is static function in c?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What is difference between Structure and Unions?
How does placing some code lines between the comment symbol help in debugging the code?