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...

Why doesn't the code "a[i] = i++;" work?

Answer Posted / abdur rab

The answer from wikipedia

Sequence point comes into play when the same variable is
modified more than once. An often-cited example is the
expression i=i++, which both assigns i to itself and
increments i; what is the final value of i? Language
definitions might specify one of the possible behaviors or
simply say the behavior is undefined. In C and C++,
evaluating such an expression yields undefined behavior.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we add pointers together?

999


What is meant by realloc()?

1083


Give me the code of in-order recursive and non-recursive.

1319


What is a #include preprocessor?

1072


What is function and its example?

1107


Write a code to remove duplicates in a string.

981


What is difference between structure and union with example?

987


Does c have an equivalent to pascals with statement?

957


Explain what is output redirection?

1133


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1965


How can you call a function, given its name as a string?

1097


How can I recover the file name given an open stream?

945


What is pragma in c?

1124


pierrot's divisor program using c or c++ code

2165


How to implement a packet in C

2824