Sulabh Nangalia <sulabh.nangalia@xxxxxxxxx> writes: > 5 < 10 ? a = 5 : a = 7; is giving error > 15 < 10 ? a = 5 : a = 7; is not giving any error > > why? Because of a bug in gcc. It's been fixed in 4.0, though. -- Falk
Sulabh Nangalia <sulabh.nangalia@xxxxxxxxx> writes: > 5 < 10 ? a = 5 : a = 7; is giving error > 15 < 10 ? a = 5 : a = 7; is not giving any error > > why? Because of a bug in gcc. It's been fixed in 4.0, though. -- Falk