[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] j = ++i * ++i * ++i : A long reply..BEWARE



> Dear Aseem,
> 	Please quote the version of gcc you where using and the platforms

i am using
 Solaris 2.5.1  and   cc 4.2
 Solaris 2.5.1  and    gcc   gcc version 2.7.2.3
 Linux   6.1    and    gcc   egcs-2.91.66

> 	b)The C language specification does not provide extensive
> support for such cases and the output is implementation dependent, ie your
> Compiler is free to do whatever it feels like. In the K&R white book (now blue),
> you are explicity warned against such adventures. 

are there any more such cases???

> 
> 	e) Thanks Pramod for reminding us the First Commandment of C
> 	    programming "Thou shall use Lint". Folks should _REALLY_ get the
> 	    lint dnload from the link provided. 

Thanks! for the link as well as advise

bye
aseem


--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.