??? 06/08/04 17:14 Read: times |
#72095 - RE: Weekend Puzzle Responding to: ???'s previous message |
@Donald,
thank you for your advise. Seems, I have something learned today. Nevertheless I'm still the opinion, that it was more error proven, if I always see any non zero expression as true, independent, if it was returned by a compiler function or by a self written function. Furthermore it is always more fault avoiding, if every variable was not assumed that it can hold only 0 or 1. Thus I wrote my programs always in this way, that any value of a variable cause always a meaningful next state and never a hanging state by receiving an unexpected value. Also I decide strictly between logical and arithmetic expressions and thus I have no problems to see, when I must use &,| and when &&,||. Thus writing: z = (a > b) ? 1 : 0; looks better readable for me, the assembler output should be the same. Peter |