Index of /examples/c/tutorials

Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory - [DIR] ex01/ 06-Jun-2012 14:37 - [DIR] ex02/ 06-Jun-2012 14:37 - [DIR] ex03/ 06-Jun-2012 14:37 - [DIR] ex04/ 28-May-2013 09:50 - [DIR] ex05/ 06-Jun-2012 14:37 - [DIR] ex06/ 11-Sep-2012 12:58 - [DIR] ex07/ 11-Sep-2012 12:59 - [DIR] ex08/ 12-Sep-2012 09:36 - [DIR] ex09/ 14-Mar-2016 13:37 - [DIR] ex10/ 28-May-2013 10:09 - [DIR] ex11/ 28-Jan-2013 15:57 - [DIR] ex11a/ 28-May-2013 09:54 - [DIR] ex11s/ 28-May-2013 10:06 - [DIR] ex12/ 13-Sep-2012 13:10 - [DIR] ex13/ 11-Sep-2012 13:04 - [DIR] ex14/ 13-Sep-2012 13:20 -

RCS sample C code

This directory contains solutions to the exercises in the Introduction to C Programming tutorial (for PowerPoint slides, see

Copy the Files

On the SCC, you can copy all of these files to your home directory by executing the command:
    scc1% cp -r /project/scv/examples/c/tutorials ~/.
    scc1% cd ~/tutorials

Program Compilation:

cd into subdirectory (e.g., ex03), and type 'make' if a Makefile is present; otherwise, type gcc [sourcename.c] (e.g., gcc Celcius2.c).

Program Execution:

To execute the program, type the name of the executable at an SCC prompt (e.g., a.out, dotprod, etc.)

Contact Information

Robert Putnam:

Operating System Requirements

The examples presented in this directory were written for Linux OS, but should work on any OS where a C compiler is available. The way the program is compiled and executed depends on the OS and software used.