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

when ever a cout or a printf statement is used..the instruction is processed from right to left..

had this been the qn
int i=5;
printf("%d%d",i++ + ++i,i);

ans would be 125.
as i said earlier the processing takes from right to left..

so first ++i=6,
then i++=6;

therfore 6+6=12..

Is This Answer Correct ?    16 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is register variable in c language?

1034


Why do we use stdio h and conio h?

1095


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2333


Write a program that accept anumber in words

1764


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2416


Can a program have two main functions?

1135


What is meant by preprocessor in c?

1017


Explain what are the different data types in c?

1225


Why we write conio h in c?

1042


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1192


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

2311


Is struct oop?

1015


Why is python slower than c?

1095


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1138


What is the use of printf() and scanf() functions?

1136