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

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

Answer Posted / sravankumar

printf() function evaluates from right to left

printf("\n %d %d %d",i++,i--,i);
4 5 5
<- <- <- <- <-evaluation of expression
but prints as the way we mentioned in printf() function
i.e first i = 5
then i--= 5 because it is post decrement
then i++= 4 this because i is decremented in above, and
not incremented immediately because is post
increment
So output is : 4 5 5

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a macro?

1163


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1578


When should a far pointer be used?

1186


How can a program be made to print the line number where an error occurs?

1134


What are high level languages like C and FORTRAN also known as?

1236


Write a program to check palindrome number in c programming?

1066


What is character set?

1216


Can we increase size of array in c?

1012


What is the difference between procedural and declarative language?

1188


Tell me when would you use a pointer to a function?

1122


Explain can you assign a different address to an array tag?

1122


What is f'n in math?

1137


What is c system32 taskhostw exe?

1071


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1225


Write a program to print fibonacci series using recursion?

1131