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 output for this question:
main()
{
int i=1;
printf("%d%d%d",i,i++,++i);
}

Answer Posted / r.aruna

answer is 3,2,2
because print the value form right to left.
so,the first one ++i means preincrement.
so,incremented one,2
second one is i++ means postincrement .
it doesn't increment store in same location
but next i means 3.because move to next location

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are the different file extensions involved when programming in c?

1110


What is pointer and structure in c?

1180


What do you know about the use of bit field?

1046


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1969


What is the purpose of sprintf() function?

1127


What is mean by data types in c?

1030


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

1245


Difference between exit() and _exit() function?

1134


What does the && operator do in a program code?

1232


What is difference between static and global variable in c?

1055


State two uses of pointers in C?

1059


What is 02d in c?

1075


What are types of structure?

1119


What is the use of sizeof () in c?

1052


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

2385