Example Programs: C Procedural Programming II

Description

Program name

Bit shifting

bit_shift.c

Bitwise implementation of: AND, OR, NOT

bitwise_operators.c

System calls: invoking the commands and libraries of an operating system within a program

system_calls.c

First pointer example: illustrates the difference between pointer and data variables.

pointer1.c

Second pointer example: through the use of pointers the user can determine the size of a character array at run time.

pointer2.c

A program that illustrates how to define functions that return values (celsius to fahrenheit temperature converter)

temperature.c

A program that illustrates how to pass parameters into functions (version 2 of the conversion program)

temperature2.c

Passing parameters by reference into a function

reference.c

A example illustrating different levels of scope (how 'not to' do it)

scope_bad.c

File input example using 'fscanf'

file1.c

File input example using 'fgets'

file2.c

File example illustrating input (read) and output (write)

file3.c