
please wait
|
|
( i != j ) < k
or i != ( j < k )
!=
equals not equal to. !
equals not. And I have tried that before, and it did not work. You cannot even do:
|
|
i != j;
either. When in doubt (unless you are absolutely sure), use parentheses. ( i != j ) < k or i != ( j < k ) |
!= equals not equal to. ! equals not. And I have tried that before, and it did not work. You cannot even do: i = j < k; That, and say that out loud. It doesn't even SOUND right in pseudo-code. 'i' equals 'j' less than 'k' That and you cannot just do i != j; either. P.S: I am not actually testing these out as I typed this, but I just remembered me trying that a couple of months ago and it not working. PPS: Be a bit more specific in your questions. PPPS: Last P.S. here, but when you come on this forum, I wouldn't recommend just putting a line of code and asking if it is right. Programming is trial and error most of the time, so before you do that, try it in your IDE. It would save you more time. |
i = j < k;
int
, why can't we do i = j < k ;
?<
has a higher precedence than !=
i = j < k;
did not work for me. What compiler are you using? I am using MinGW.