Mail Archives: djgpp/1992/09/12/04:41:19
>> main()
>> {
>> int i = 5;
>>
>> i = { if (i < 3) i = 19; 9; } ;
>> printf("i = %d\n",i);
>> }
>>
>> However, it does not compile under DJGPP 1.08
>>
>> (The result, BTW, should be that i == 9 regardless of the original value)
>>
>> Am I missing something?
I think correct style is following.
main()
{
int i = 5;
i = ({ if (i < 3) 19; 9; }) ;
printf("i = %d\n",i);
}
It have to need '( )' avoiding statement/expression confusion.
--
Kawahara Taro
- Raw text -