CSADPRG_mod4_relational_boolean_expressions

original file
this is unedited

relational operators

Examples of inequality operator: != (C-based), ~= (Lua), .NE or <> (Fortran), <> ML and F#, === and !== (JavaScript, PHP to prevent coercion of the operands)

boolean expressions

For C-based languages (those prior to C99 had no boolean type and value so 0 was false and non-zero was true.)

Highest postfix++, --
unary +, -, prefix ++, --, !
*, /, %
binary +, -
<, >, <=, >=
=, !=
&&
Lowest ||
//try running
int main()  
{  
 int a = 3;  
 int b = 2;  
 int c = 1;  
  
 int x = a > b > c;  
 printf("%d",x);  
}
//try running
public static void main(String[] args) {
   int a = 1;
   int b = 2;
   int c = 3;
   System.out.println(a > b > c);
}

// "would output bad operand types for binary operator"