what is the value of b
if a=5;
b=++a + ++a

Answer Posted / kaps

IT is defenetly 14...Ans = 14
Explanation:
Because ++a = 6
then again ++a = 7
Now compiler replace the both value with 7 (because of both
are of value of a).
So 7+7 = 14.

It is tested on turbo C...
try with adding one more ++a will give u ans 24(8+8+8) for
++a + ++a + ++a.

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to capitalise first letter of each word in a given string?

1436


What are the 32 keywords in c?

639


Write a code on reverse string and its complexity.

611


Explain pointers in c programming?

638


Why c is called a middle level language?

636






What is #include stdlib h?

619


How macro execution is faster than function ?

673


Whats s or c mean?

597


Can I initialize unions?

596


What is multidimensional arrays

637


What is the difference between fread and fwrite function?

642


What is function what are the types of function?

563


Explain a pre-processor and its advantages.

637


Do you know the difference between malloc() and calloc() function?

617


Why isnt there a numbered, multi-level break statement to break out

591