View Single Post
Old 21.10.2007, 02:26   #61
mcrabben7
Guest
 
Posts: n/a
Default [SHARE] C4 Nasc Beta

compiler allows if(a = b) but it shouldnt. only if(a == b) should be allowed. in the other hand a = b maybe should be understood as true. if(a = b) means if we assign b to a and that is true always.

No, you are wrong. a = b means assign b to a, and THEN check a for true. If a is true (not 0) then enter this block.

There is nothing wrong with that code. This is C coding, not Java :)

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 21 October 2007, 02:26. Открыть источник.