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

Answer Posted / goldy ramnani

13
because 1stly a=5,
then compiler compile fromleft to right,
so ++a means a=6 then
++a a=6 now a=7,lastly 7+6=13

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static function in c?

635


what is a function method?give example?

1914


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

725


What is the use of header files?

606


Stimulate calculator using Switch-case-default statement for two numbers

2448






provide an example of the Group by clause, when would you use this clause

1709


What are the 4 types of unions?

610


What is the equivalent code of the following statement in WHILE LOOP format?

769


Is main a keyword in c?

632


What is struct node in c?

621


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜nā€™ element.

1582


Can we use visual studio for c?

552


Explain what are global variables and explain how do you declare them?

643


What is unary operator?

660


What is boolean in c?

613