This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A simple question on expression
- To: gcc at gcc dot gnu dot org, jzhang916 at sina dot com
- Subject: Re: A simple question on expression
- From: dewar at gnat dot com
- Date: Fri, 31 Aug 2001 09:34:00 -0400 (EDT)
- Cc: bohdan at kivc dot vstu dot vinnica dot ua
<<why
a = 0?0:a++;
not be expanded to
>>
It could be, but there is no requirement for it to be so expanded. You
are writing code whose meaning is defined neither by K&R nor by the
ANSI standard, so asking questions about how it is compiled is a waste
of time. This is a C issue, not a GCC issue, so you should take it to
an appropriate newsgroup at this stage if you are still confused on the
C rules.