Introduction to C

2/4/99


Click here to start


Table of Contents

Introduction to C

Writing C Programs

Using the C Compiler

Invoking the Compiler Example

The Result : a.out

3 Stages of Compilation

3 Stages of Compilation

Compilation Diagram

An algorithm for writing code

Incremental Approach to Writing Code

Incremental Approach to Writing Code (continued)

3 Stages of Compilation

A Simple C Program

Anatomy of a C Program

The Program Header Comment

Preprocessor Directive

main ( )

Left Brace

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

Right Brace

Good Programming Practices

Examples of Comment Styles

More Comments

Use of Whitespace

Use of Whitespace (continued)

Author: UMBC Dennis

Email: frey@cs.umbc.edu