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
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
What is the difference between functions getch() and getche()?
Explain is it better to bitshift a value than to multiply by 2?
What is bss in c?
What are the types of type specifiers?
Write programs for String Reversal & Palindrome check
What are the various types of control structures in programming?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
List a few unconditional control statement in c.
What is the difference between near, far and huge pointers?
What is c language in simple words?
What are the 4 types of unions?
Apart from dennis ritchie who the other person who contributed in design of c language.
There seem to be a few missing operators ..
hi any body pls give me company name interview conduct "c" language only