Chapter

Order of Precedence

From ComputerScienceOne by Dr Chris Bourke

Concepts

  1. What is the order of precedence and associativity of C operators?

    "16.1. Logical Operators Operator(s) Associativity Notes Highest ++ , -- left-to-right increment operators - , ! right-to-left unary negation operator, logical not * , / , % left-to-right + , - left-t

  2. How are comparison operators used with characters in C?

    "16.1.2. Comparing Strings and Characters The comparison operators in Table 16.1 can also be used for single characters because of the nature of the ASCII text table (see Table 2.4). Each alphanumeric

  3. Why can numeric comparison operators not be used to compare strings in C?

    "Numeric comparison operators cannot be used to compare strings in C. For example, we could write (\"aardvark\" < \"zebra\") which would be valid C, and it would even have a result. However, that resu

Order of Precedence | ComputerScienceOne | Bifalgorithm | Bifalgorithm