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 will be the output of
x++ + ++x?

Answer Posted / shivu

4

printf or any other expression executes from right. So first
prefix increment. then 2 and assigned to y. and will get add
with the result again, then it will increment.
now the value of x is 3. but the output is 4.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of static variable in c?

1091


How can I split up a string into whitespace-separated fields?

1056


What are multibyte characters?

1120


Is Exception handling possible in c language?

2048


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

1275


What is scope rule in c?

1065


Explain about block scope in c?

1093


write a program to copy the string using switch case?

2900


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2448


What is difference between structure and union in c programming?

1107


Explain how do you print an address?

1146


What is the g value paradox?

1171


Does c have circular shift operators?

1236


What is an array? What the different types of arrays in c?

1186


What is the difference between exit() and _exit() function in c?

1076