Performing Computations

6/11/99


Click here to start


Table of Contents

Performing Computations

Outline

Outline (cont)

Expressions in C

Some Expression Formats

Types for Operands

Primary Expressions

Binary Expressions

Arithmetic Operators

Promotion Hierarchy

Assignment Expression

Assignment Expression (cont)

Shorthand Assignments

Unary Expressions

Cast Operator (Unary Prefix Op)

Prefix Increment, Decrement

Postfix Increment, Decrement

Side Effects

Complex Expressions

Resolving Complex Expressions

Operator Precedence

Using Operator Precedence

Parenthesized Expressions

Programming Tip: Parenthesizing

Associativity

Operator Associativity

Using Operator Associativity

Composing Assignments

Multiple Assignments

Statements

Expression Statements

Compound Statements

Compound Statements (cont)

Compound Statements (cont)

Author: Richard Maclin

Email: rmaclin@d.umn.edu

Home Page: http://www.d.umn.edu/~rmaclin/

Download presentation source