Got 30 seconds to spare? Make a no cost food donation to the United Nation

Programming in C - Course Outline

Examples of random number generation, etc., from the lecture of 12th December, 2002.

Practicals

Assessed Assignment for the January 1997 session

Assessed Assignment for the January 2000 session

Assessed Assignment for the January 2001

Assessed Assignment for the May/June 2001 session

Assessed Assignment for the January 2002 session

Assessed Assignment for the January 2003 session



Assessed Assignment for the January 2004 session

(Slight changes made... 13/11/03)

Past Papers

Course Organisation and overview

Frequently Asked Questions

Common gcc Compiler Error/Warning Messages

Lecture 1: Introducing C (1)

- Introduction to C
- The Structure of a C progam
- Some basic C commands

Lecture 2: Introducing C (2)

- for loop
- Symbolic Constants
- Character input and output
- Logical AND and OR
- Arrays and Functions
- Call by Reference and Call by Value

Lecture 3: Types, Operators and Expressions

- Variables and constants
- Data Types
- Operators
- Expressions

Lecture 4: Control Flow

- if
- switch
- Conditional Expressions
- while
- break and continue

Lecture 5: Functions and Program Structure

- Multi-file programs
- Scoping
- Recursion
- The C Pre-processor

Lecture 6, 7: Pointers and Arrays

- Pointers and addresses
- Organisation of Memory
- Pointers and Arrays
- Managing and manipulating memory
- Passing parameters to C programs
- Pointers to functions

Lecture 8: Data Structures

- Basics
- Passing and returning structures
- Pointers and structures
- Arrays of Structures

Lecture 8a: Managing Memory in C

Lecture 9: Manipulating Files

Lecture 10: Manipulating Files (2)