[LIP] Doubt in ++ operator

Vardhman Jain <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
Hi,
   I have a doubt whether the following code should really be compiler
dependent.
int i=7;
int j=i++ * i++;
printf("%d",j);

I think the answer should always be 49, as the ++ operator comes to
action after the completion of the statement with the ';', But is
there some reason the i++ should increment i before the next i++ is
read means should the second i++ be read as 8 or 7?? Is this behaviour
undefined in c ??


Vardhman

-- 
*************************************
Vardhman Jain, Btech 4rd Year@IIIT Hyderabad
website: http://students.ac.in/~vardhman


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.