For Programmers: Free Programming Magazines  


Home > Archive > C > February 2006 > Re: comp.lang.c FAQ list · Question 7.19









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: comp.lang.c FAQ list · Question 7.19
Michael Mair

2006-02-27, 6:57 pm

Micah Cowan schrieb:
> "Robin Haigh" <ecl6rsh@leeds.ac.uk> writes:
>
>
>
> It must evaluate the expression, /because/ of the text in the
> standard, irregardless of whether complications will result. However,
> I don't see what complications you might be referring to. Can you
> elaborate?


Side effects.
void foo(size_t n)
{
int a[3][17];
int b[3][n];
int c = 7;

(void)sizeof a[c=c*c];
(void)sizeof b[c=c*c];

printf("%d\n", c);
}

-Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com