Skip to: Site menu | Main content

C Programming Notes

The most current versions of the presentation slides and example programs will be made available here. Where appropriate, both C and C++ versions of the example programs are provided. Note that since Microsoft Windows uses case insensitive names, the Linux convention of using .c extensions for C program files and .C for C++ program files can't be used. The alternate extension of .c++ is allowed and is used instead of .C.

Right-click and do "Save Link as ..." to download a copy.

Session Notes
1: Introduction 17 Jun 2014 PDF
hello.c / .c++
pounds.c / .c++
pounds2.c / .c++
video
2: Variables 19 Jun 2014 PDF
epsilon.c / .c++
hello2.c++
precision.c / .c++
no video available
3: Operators 24 Jun 2014 PDF
assignment.c / .c++
bits.c / .c++
bool.c / .c++
or_and.c / .c++
post_pre.c / .c++
state.c / .c++
no video available
4: Control Structures 26 \ & 1 Jul 2014 PDF
epsilon3.c / .c++
epsilon4.c / .c++
video
5: More On Structures 1 Jul 2014 PDF
addrs.c / .c++
break_cont.c / .c++
video
6: Functions 3 Jul 2014 PDF
addf.c / .c++
addf_2.c / .c++
addf_3.c / .c++
f2ck_array.c / .c++
f2ck_ptr.c / .c++
static.c / .c++
video
7: Real Program & Revision Control 8 Jul 2014 PDF
laplace-1D.c / .c++
video
8: Multi-File & Make 10 Jul 2014 PDF (video placeholder)
9: File I/O, Debugging & Other Tools 22 Jul 2014 PDF
random..c / .c++
(video placeholder)
Reference Material
UNIX/Linux Introduction Command line use PDF
VI Quick Reference 1 page cheatsheet PDF
VI Quick Reference 2 page cheatsheet PDF
HPC Moodle Self-paced tutorials List
HPC Training Past tutorials List