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

In c language can we compile a program without main() function?

1137


What do you mean by command line argument?

1180


Can you write the function prototype, definition and mention the other requirements.

1138


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1254


The file stdio.h, what does it contain?

1166


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

3545


Differentiate abs() function from fabs() function.

1021


What does %c mean in c?

1097


What is .obj file in c?

1087


What is the main difference between calloc () and malloc ()?

1158


what is the height of tree if leaf node is at level 3. please explain

2153


What is getch c?

1300


regarding pointers concept

2042


Explain do array subscripts always start with zero?

1239


How can I convert a number to a string?

1197