int a=0,b=2;
if (a=0)
b=0;
else
b=*10;
What is the value of b ?
Answer Posted / sandeep kumar
if (a=0)
is a wrong statement.
Since it should be
if (a==0)
so, it will throw an error
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
When is a “switch” statement preferable over an “if” statement?
What does a function declared as pascal do differently?
Why main is not a keyword in c?
What is "Duff's Device"?
what is stack , heap ,code segment,and data segment
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
Explain how do you view the path?
What is meant by int main ()?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
Explain about C function prototype?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
How can I open files mentioned on the command line, and parse option flags?
what is recursion in C
What is a macro in c preprocessor?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?