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 / dhivya

11 11 13
++i which means i is first incremented and then printed thus i value becomes 11,
i++ which means i is printed and then it is incremented, since the value of i is now 11, it is printed and then incremented to 12.
again ++i , increments i to 13 and then prints.

Is This Answer Correct ?    66 Yes 38 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between declaring a variable and defining a variable?

1055


What is a constant?

1073


Where static variables are stored in c?

1119


What are the advantages of using new operator as compared to the function malloc ()?

1360


please give me some tips for the placement in the TCS.

2123


Does free set pointer to null?

1023


What is context in c?

932


code for quick sort?

2047


What is your stream meaning?

1252


Does * p ++ increment p or what it points to?

1136


Explain how can you avoid including a header more than once?

1104


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

1522


How many bytes are occupied by near, far and huge pointers (dos)?

1171


What do you mean by keywords in c?

1160


Describe the header file and its usage in c programming?

1081