Lecture 1 - Slide 22 : 34
Structures: Examples
Some C programs that illustrate structs in C
struct-1.c
C program with a couple of structs.
struct-1-output
Program output.
struct-2.c
A move_person function with structs parameters - does not work.
struct-2-output
Program output.
struct-3.c
A move_person function with structs parameters - now better.
struct-3-output
Program output.
Go to exercise
Functions with struct input and struct output
Go to exercise
Specialization of persons with a union type
bit-field-ex.c
A program that illustrates a struct with bit fields.
bit-field-output
Program output.