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

Answer Posted / pravesh

a=5
b=++a(6) + ++a(7)
b=13+1 when last addition is performed.
so, b=14

Is This Answer Correct ?    1 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why c is a mother language?

554


what are bit fields? What is the use of bit fields in a structure declaration?

1499


How do you write a program which produces its own source code as output?

608


Write a program to check armstrong number in c?

635


Why c is called procedure oriented language?

579






What is a static function in c?

624


What are extern variables in c?

549


What is c system32 taskhostw exe?

592


What is the purpose of 'register' keyword in c language?

629


What is local and global variable in c?

616


Is that possible to add pointers to each other?

904


Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

689


What is register variable in c language?

606


What is identifier in c?

545


Why do we write return 0 in c?

555