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 = 10;
printf(" %d %d %d \n", ++i, i++, ++i);
}

Answer Posted / krityangan

The Answer is 13 11 13
because the post increment will printed first and then pre.
i=10
the ++i=11,i++=12,++i=13,but in c the compiler will print ++p which is now 13 and after that when the compiler come to i++ it will print 11 because in the pre addition the previous vale is printed first andthan i= 12.

Is This Answer Correct ?    27 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string constants?

1096


What is d scanf?

1024


Why do we use null pointer?

987


What are the types of macro formats?

1058


What is the difference between declaring a variable and defining a variable?

1183


How do you print an address?

1207


Is it valid to address one element beyond the end of an array?

1119


What is a stream water?

1127


What are the string functions? List some string functions available in c.

948


What is the use of typedef in c?

989


Can a variable be both const and volatile?

1068


What are # preprocessor operator in c?

1043


Why is not a pointer null after calling free?

968


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1920


Write a program to swap two numbers without using a temporary variable?

1069