[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: [LI] j = ++i * ++i * ++i : A long reply..BEWARE
On Wed, 19 Jan 2000, Aseem Rane wrote:
*> 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???
*
A shameless copy from K&R would reveal a situation like this:
int a[10], i;
i=3;
a[i]=++i;
a[i++]=++i;
--------------------------------------------------------------------
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.