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

void main()
{
int i=5;
printf("%d",i+++++i);
}

Answer Posted / vinay,

:) its just how the Compiler parses things..

the..maximum matching (of a token) principle... from the
left..

1. i++ is a valid maximum match. Good, next
2. + match, next (expects a + or a identifier,for furthur
match)
3. + (this is not a identifier, but a + will do so:
match=++). Next the parser wants an indentifier.. else
compiler flags an error..
4. + (not an identifier.. so.. fails)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between int main and void main in c?

1115


explain what is an endless loop?

1052


What is 1f in c?

2597


How can I find out how much free space is available on disk?

1026


Why is not a pointer null after calling free?

986


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1906


What is the use of typedef in structure in c?

934


What does the file stdio.h contain?

1015


What is scope and lifetime of a variable in c?

1008


What is use of null pointer in c?

979


What is difference between main and void main?

1140


How will you delete a node in DLL?

1245


Which node is more powerful and can handle local information processing or graphics processing?

1280


What is scope rule of function in c?

1046


How do you use a pointer to a function?

1045