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

if x=3
y=x++ + ++x;
y will be 8
x will be 5

calculating y part
1) x++ is 3 and x will be 4
2)++x is 5 bcz x is incremented then assigned so x=5

so y finally gives 8.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is calloc()?

1071


What are the three constants used in c?

995


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

1115


Explain what is the difference between the expression '++a' and 'a++'?

1214


Whats s or c mean?

1023


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

1136


What is an lvalue?

1063


I need a sort of an approximate strcmp routine?

1030


When is a null pointer used?

1115


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2253


Why & is used in c?

1190


why return type of main is not necessary in linux

2108


Is there a way to jump out of a function or functions?

1095


What is array of pointers to string?

1078


Are there any problems with performing mathematical operations on different variable types?

1040