ANSI C Programming: Expressions

Course Status: Released
Course Language: English
Course Duration: 4 Hours
Deployment Options: Online, Interactive CDs, Network, Downloads, Intranet

Audience
Programmers and software developers
Prerequisites
Awareness of programming concepts; experience of using a third-generation, high-level language such as Pascal, PL/1, BASIC, or FORTRAN
Course Aim
To familiarize the student with the syntax rules governing expressions and statements in ANSI C; to enable the student to use expressions and statements correctly
Learning Objectives
Explain the syntax of ANSI C expressions and statements.
Use the bitwise operators to write ANSI C programs to do portable bit manipulation operations.
Outline the rules of precedence and associativity.
Write ANSI C programs without semantic errors caused by badly specified expressions
Topics Covered
Boolean values
- General expressions
- Hands-on: Writing a continue statement

Operators
- Assignment operators
- Arithmetic and relational operators
- Logical operators

Bitwise, comma, and conditional operators
- Bitwise operators
- The comma operator
- The conditional operator

Precedence and associativity
- Precedence and associativity order
- Expression evaluation
- Expression types


Copyright © E&A Inc. All rights reserved.