Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is bash c?

1013


What is an operator?

1078


What is the general form of function in c?

1022


how to write a c program to print list of fruits in alpabetical order?

2306


Explain how do you list files in a directory?

1076


Which type of language is c?

1079


Can a file other than a .h file be included with #include?

1166


hi, which software companys will take,if d candidate's % is jst 55%?

2093


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3922


Why main is not a keyword in c?

1260


Is it fine to write void main () or main () in c?

1031


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1925


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

1096


What is const volatile variable in c?

1038


How many parameters should a function have?

1198