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...

void main()
{
int i=5;
printf("%d",i++ + ++i);
}

Answer Posted / ravinder

Ans 12,
as addition will takes place from left to right
step1: i++ = 5;
step2: value of i will be updated before taking value of
another operand and hence i = 6;
step3: ++i = 7 as first increment will happen and then value
will be used.
final result: 5 + 7 = 12;

Is This Answer Correct ?    24 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to print factorial of given number using recursion?

1064


What are the valid places to have keyword “break”?

1145


swap 2 numbers without using third variable?

1177


What is the use of pragma in embedded c?

1099


Write a code of a general series where the next element is the sum of last k terms.

1093


Write a program to check prime number in c programming?

1147


How can I make it pause before closing the program output window?

1081


what will be maximum number of comparisons when number of elements are given?

1952


What is oops c?

1342


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

2349


What is static memory allocation? Explain

1138


What is the use of function overloading in C?

1216


Place the #include statement must be written in the program?

1087


How can I change their mode to binary?

1185


What are the features of c language?

1125