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


Thank you for your reply!

But your "obvious" explanation is not satisfiable.

If the following statement

a = (a<4)?0:a++;

can be expanded to

if (a<4)
	a=0;
else
	a=a++; /* 2 */


why
a = 0?0:a++;
not be expanded to

if (0)
	a=0;
else
	a=a++; /* 2 */


ps. I have read the K&R yet.


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