what is the value of b
if a=5;
b=++a + ++a
Answer Posted / sagar
here in b=++a + ++a;
a
Initial Value 5
First Prefix 6
Second Prefix 7
Final Equation b = 7 + 7 = 14...
So,correct answer is 14....
if the equation was as below:
c=++a;//a==6
d=++a;//a=7
b=c+d;//b=6+7=13
then b==13...
| Is This Answer Correct ? | 97 Yes | 29 No |
Post New Answer View All Answers
write a progrmm in c language take user interface generate table using for loop?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
How to write a code for reverse of string without using string functions?
Why is c called c?
What do you mean by a local block?
Describe explain how arrays can be passed to a user defined function
Why main function is special give two reasons?
Explain what is the heap?
How do I use void main?
What is wrong in this statement?
What are the advantages and disadvantages of pointers?
What does 2n 4c mean?
Is main a keyword in c?
Did c have any year 2000 problems?
In C programming, how do you insert quote characters (‘ and “) into the output screen?