HIDE NAV

Source Code


[c source] 2D Array Basics

2D Array Basics.


[c source] Struct Basics

This source shows how to declare a struct, create instances of it as variables, access the instance member varibles, and use struct variables as parameters for funcitons.


[c source] Getting & Correcting String Input from fgets

This source demonstrates some different methods for correcting for some of the extra inputs that can occur with fgets command line entries.

[c source] String Basics

This source shows the basics of strings and the string.h standard library.


[c source] Sorting Arrays with qsort

This source shows how to use the stdlib.h function qsort to order values in an array from least to greatest.


[c source] Basics of Pointers

Shows the basics of pointers (which store to variable memory addresses).


[c source] Array Basics

This source shows the basic use of arrays including declaration, assignment using loops and reference using loops.


[c source] Function Libraries

An example of the conventional organization of a function library into header and source files.


[c source] Function Basics

The basics of prototyping, implementing and calling functions.


[c source] Looping Number Menu

Demostrates a simple quit-able looping number selection menu using scanf.


[c source] Case Switch

Demostrates basic syntax for a case switch


[c source] While Loops

Demostrates three common uses of while loops.


[c source] Pseudo-Random Number Generation

Demostrates use of rand to produce different kinds of pseudo-random numbers


[c source] If Else and Else-If

Demostrates of some common uses for if else and else-if branching


[c source] Data Type Properties

Uses sizeof to show the properties of the C data types


[c source] Variables types and printf

Demonstrates basic variable declaration, data types and use of printf