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 / ishrat ali

the calculate of any expression can be done from left to
right,so first i++ compute it means 1st use then increment 5
is used in place of i++ and after using the value of i
increment that is 6.
after that ++i is used that is 1st increment then use in the
expression so now ++i is replaced by 7;
finally 6+7=12 (ans)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If I have a char * variable pointing to the name of a function ..

1111


Explain how are portions of a program disabled in demo versions?

1071


How to compare array with pointer in c?

1048


What does the file stdio.h contain?

998


Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent

1772


What is the meaning of c in c language?

1072


Explain the Difference between the New and Malloc keyword.

1077


How many types of sorting are there in c?

1010


What is the condition that is applied with ?: Operator?

1069


What is the difference between variable declaration and variable definition in c?

1014


What is maximum size of array in c?

989


What is 'bus error'?

1090


Explain that why C is procedural?

1081


How to write a code for reverse of string without using string functions?

2073


What is the Purpose of 'extern' keyword in a function declaration?

1032