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 / koushik ramesh

this program output is 12.

first is i++ is 5 only because this the post increment
first using the value after increment.

whenever i++ + the value of is 6.
++ i means this is the pre-increment.first increment
the value after using the variable this step i will become
7.
total is i++ =5
i++ + =6
++ i=7
i++ + ++i= 12. this is posted by Ramesh(MCA)Nizam
college.HYDERABAD

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between malloc() and calloc() function?

1199


What is a pointer and how it is initialized?

1159


How can I send mail from within a c program?

1030


Explain which function in c can be used to append a string to another string?

1090


What are nested functions in c?

1016


What is the difference between far and near ?

1193


What is page thrashing?

1083


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

1200


What does it mean when a pointer is used in an if statement?

1107


What is a protocol in c?

1003


What are the two forms of #include directive?

1167


What is a class c rental property?

1093


When should the const modifier be used?

1112


Subtract Two Number Without Using Subtraction Operator

849


Explain the array representation of a binary tree in C.

1230