CityU ‘98-’99 DCO5013

4/1/98


Click here to start


Table of Contents

CityU ‘98-’99 DCO5013

SYLLABUSE

Textbook and Reference

Assessment and Sample

Introduction

Program Development Process

Language translation

The C Language

Describing the syntax of C

Grammar of C Statement

Semantic of C

Data types in C

/* typesize.c in Module locker */

Conversion and Casts

Pointer

Pointer operator “*” and “&”

/* headtail.c in module locker

Variable

User-defined Data Type - Enumeration types

User-defined Data Type - typedef

Value

Constant

Operators and Punctuation

Operators - Relational

Operators - Bitwise

Special Operators

assignment operator "="

conditional operator (? :)

The C Preprocessor

The C Preprocessor cont.

The C Preprocessor cont.

The C Preprocessor cont.

Preprocessor command: #define

Printing/Reading formatted output/input

Program example sqrroot.c

Program example cont.

Statements

If statement

Iteration statement

Iteration statement cont.

switch and jump statement

Jump statement cont.

The function construct

Function definition

Function prn_message()

Function prototypes

Function prototypes cont.

Call-by-value parameter passing

Pointer - Call-by-reference

Pointer - Call-by-reference cont.

Array

Pointer and Array

Multi-Dimensional Arrays

Character and String

Pointer - Passing Array

PPT Slide

Files I/O

Accessing files

Files - reading & writing

Files - moving around

Sorting - Bubble Sort

Bubble Sort cont.

Structure data types

Structure data types cont.

Unions

Pointer to Structure

Author: terence

Email: dcywchan@cityu.edu.hk