You had better recheck your C Reference Manual -- The K & R book (page 49) says that ?: groups RIGHT to LEFT.