Sams Teach Yourself C in 21 Days

(singke) #1

DAY 4


WEEK 1


The Pieces of a C


Program: Statements,


Expressions, and


Operators


C programs consist of statements, and most statements are composed of expres-
sions and operators. In order to be able to write C programs, you need to under-
stand statements, expressions, and operators. Today you will learn:


  • What a statement is

  • What an expression is

  • How to use C’s mathematical, relational, and logical operators

  • What “operator precedence” is
    •Theifstatement


07 448201x-CH04 8/13/02 11:14 AM Page 59

Free download pdf