??? 09/06/06 17:08 Read: times |
#123767 - this is when the C people try to be smart... Responding to: ???'s previous message |
... so they write a bunch of #$%&-s instead of proper "begin",
"end", and in this case, "and"... Quickhelp: bitwise and/or/xor/not: & | ^ ~ logical and/or/not: && || ! (no logical xor, sorry...) I'll explain it a little bit further, 5 & 4 yields, but 5 && 4 yields arbitrary nonzero. Confusing? Nooo, waitaminute, can't be, this IS the best programming language around... :-) JW, the C hater PS have look also at the ?: operator, very refreshing... |
Topic | Author | Date |
A learning 'C' speed bump | 01/01/70 00:00 | |
Uninitialised? | 01/01/70 00:00 | |
Variables were initialized. | 01/01/70 00:00 | |
logical vs bitwise | 01/01/70 00:00 | |
this is when the C people try to be smart... | 01/01/70 00:00 | |
Ok, corrected the && ... | 01/01/70 00:00 | |
check the size of the variables | 01/01/70 00:00 | |
I Ceed it already | 01/01/70 00:00 | |
Style | 01/01/70 00:00 | |
style does not apply to C only | 01/01/70 00:00 | |
words | 01/01/70 00:00 | |
Does it?? | 01/01/70 00:00 | |
Verification | 01/01/70 00:00 | |
oh come on... | 01/01/70 00:00 | |
RESOLVED | 01/01/70 00:00 | |
variable scope | 01/01/70 00:00 |