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 a example of a variable?

1027


what is use of malloc and calloc?

1908


What are the usage of pointer in c?

1201


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2647


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3379


How do you convert strings to numbers in C?

1230


The statement, int(*x[]) () what does in indicate?

1152


How do you determine a file’s attributes?

1089


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

2257


What does char * * argv mean in c?

1070


Why should I prototype a function?

1205


What does %2f mean in c?

1227


List some of the dynamic data structures in C?

1249


What is a node in c?

977


What is ponter?

1270