This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A simple question on expression


<<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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]