From the book: Example of pseudo-code for a properly restructured condition check

while ( i < MAX_ELEMENTS ) if ( item[ i ] <> 0 ) then 

I do not understand what it means <>

    1 answer 1

    <> - means not equal . The syntax is similar to Pascal.
    In your case: if item[i] not equal to 0 , then perform some actions.

    • It means either less or more. Не равно it != But ultimately it is equivalent. In languages ​​where there is a sign ! used as not , accepted != . And where not, there <> , that would not spoil the language as a whole. Somewhere both options are used. - Sergey