int a=0,b=2;
if (a=0)
b=0;
else
b=*10;
What is the value of b ?
Answer Posted / kc
The code will not compile as statement "b=*10" is invalid"
It should be "b*=10".
If i assume "b*=10" then the output will be 20
Reason:
a=0;
b=2;
if(a=0 means 0) so b=0 will not execute
b=b*10=2=10=20;
Is This Answer Correct ? | 37 Yes | 6 No |
Post New Answer View All Answers
Do pointers need to be initialized?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
What is structure data type in c?
What is wrong with this program statement?
What does it mean when the linker says that _end is undefined?
How many types of errors are there in c language? Explain
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
how can use subset in c program and give more example
code for replace tabs with equivalent number of blanks
Tell me what is null pointer in c?
What is %lu in c?
What is equivalent to ++i+++j?
How do you construct an increment statement or decrement statement in C?
What is this pointer in c plus plus?