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

let x=1,here it starts with x++, so first x takes value 1 and then it increments to 2.. later ++x.. here x is incremented first i.e.,x=3 and then added to previous value..ie., 1+3
o/p is 4

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of arrays are there in c?

1049


Explain how do you use a pointer to a function?

1117


What are actual arguments?

1108


What are the scope of static variables?

1198


What is pivot in c?

1034


What is pointer in c?

1206


Write a program to show the change in position of a cursor using c

1076


Explain setjmp()?

1079


How can I read and write comma-delimited text?

1077


How do you do dynamic memory allocation in C applications?

1093


Why is main function so important?

1113


hi, which software companys will take,if d candidate's % is jst 55%?

2095


Between macros and functions,which is better to use and why?

2234


explain what is an endless loop?

1104


Differentiate Source Codes from Object Codes

1594