Click here to start

Table of Contents


Writing C Programs

Using the C Compiler

Invoking the Compiler Example

The Result : a.out

3 Stages of Compilation

3 Stages of Compilation

3 Stages of Compilation

Compilation Diagram

A Simple C Program

Anatomy of a C Program

The Program Header Comment

Preprocessor Directive

main ( )


printf ( )

“Hello, Class!\n”

printf (“Hello, Class!\n”) ;


Examples of Comment Styles

More Comments

Using Variables

Declaring Variables

Declarations and assignments

printf ( ) & %d

Meatballs Algorithm

Money Problems ?

Money problems

Money problems

Money Algorithm

Author: Gary L. Burt

Email: burt@umbc

Home Page: www.cs.umbc.edu/~burt