Writing C Programs


Click here to start

Table of Contents

Writing C Programs

What is a buffer ?

Modification of wreck.c (works for any # of fathoms)

Floating point numbers

Floating point version of wreck.c (works for any depth shipwreck)

Arithmetic Operators

Modulus %

Integer Division

Division By Zero

Uses of Modulus

Arithmetic Operators Rules of Operator Precedence

Evaluation of expressions

Evaluation of expressions (II)

Practice With Evaluating Expressions

Good Programming Practices

A Sample Project

An algorithm for writing code

Author: Gary L. Burt

Email: burt@umbc

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