Announcements  

Course Information 

Coursework Schedule     

Department of Computer Science

 COMP 1105 Introduction to Programming with C


 

Topic Lecture Notes

Problem Solving and Programming

The Structure Theorem
Modularization
Top-Down design and Stepwise Refinement
Algorithms
Pseudocode and Flowcharts
Control structures

Problem Solving

Computer Fundamentals

Computer organization
Computer systems
Operating systems
Programming languages

History

Computer Organization

Welcome to C

 

Structure of a C Program

The C Standard Library
The C programming Process
Variables and Constants
Data Types
Introduction to Arrays
Preprocessor Directives
Input and Output

Introduction to C

Aspects of Program Quality

Formatted Input and Output

Streams
Standard Devices
Formatted Input and Output
Character I/O
String, Character and Numeric Functions

Formatted I/O and Character I/O functions

 

C's Operators

Binary Operators
Unary Operators
Order of Operator Precedence
Associativity of Operators
Assignment Statement and Mixed data-type calculations
Type Casting
Relational Operators
The if ... else statement
Logical Operators
Conditional, Increment, Decrement, sizeof and comma Operators

C's Operators

Controlling C Programs

The while Loop
The do while Loop
Counters and Totals
The for Loop
Controlling Repetition
Controlling Flow
Nested control structures
The switch Statement
The exit, break, continue and goto Statements

Control Structures

Modularization

Program Modules in C

Library Functions

Programmer-defined Functions

Modularization (notes)

Revision Notes

Functions in C

Function Prototypes
Parameter Passing (Call by Value and Call by Reference)
Returning Function Values

Variable Scope and Structuring Code

Storage Classes

Functions

Simple C File Processing

Sequential File Access
Writing to a File
Reading from a File
Adding to a File

File Processing

Arrays

Data structures
Initializing arrays
Referencing data items
Processing arrays
Parallel arrays

Arrays

Memory and Number Systems

Number Systems
Data Representation

Number Systems

Information Representation

Advanced Topics in C
The Preprocessor

Last maintained by Adrian Als on 05 September, 2007 .