C Programming
6/1/2020 - 6/5/2020
8/31/2020 - 9/4/2020


COURSE COST: $2495.00

COURSE TIMES: 9:00am - 4:30pm

Printable version of this course
Register for this course


Students will develop the ability to design and write programs in the C programming language.


Programmers new to the ANSI C language Programming skill in a language such as Pascal, COBOL, BASIC, or assembler


*Course Cost listed does not include the cost of courseware or lunch, required in your registration. Please refer to your Enrollment Sales Order or Invoice for the additional cost. If you have any questions, please contact us (learn@vtec.org or 207-775-0244). Course subject to minimum enrollment.


Course Introduction
Course Objectives
Course Overview
Suggested References

Introduction to C
What is C?
Features of C
Why Program in C?
History of C
Current Status and Future

An Overview of C
The First Program (hello.c)
How to Compile and Run a C Program
An Arithmetic Program (roof.c)
Execution Flow Control (mph.c)
The for Loop
The for Loop - Diagram
Character I/O
A File Copier Program (cp2.c)
A Character Counter (wc2.c)
A Look at Arrays
Stock Values (stock1.c)
The char Data Type

Strings (Character Arrays)
A String Copy Program (stringcp.c)
A Look at Functions
A Functional Program (func1.c)
A Review of printf()

Data Types and Variables
Fundamental Data Types
Data Type Values and Sizes
Variable Declarations
Variable Names
Character Constants
String Constants

Operators and Expressions
What are Expressions?
Arithmetic Operators
Relational Operators
Assignment Operator
Expressions Have Resulting Values
True and False
Logical Operators
Increment and Decrement Operators (++
Increment and Decrement Operators:
'Operate-Assign' Operators (+=, *=, ...)
Conditional Expression
Operator Precedence

Precedence and Order of Evaluation
Evaluation of Logical Operators
Type Conversions
The Cast Operator
Bitwise Logical Operators

Control Flow
if - else
if() - else if()
do - while()
The for Loop - Diagram
Example: for() Loop
Another Example: for() Loop
The break Statement
The continue Statement

What is a Function?
Example: findbig3()
Why Use Functions?
Anatomy of a Function
Example: find_big_int()
Arguments Passed by Value
Addresses of Arguments Can Be Passed
A Picture of Addresses and Values
When to Use the Return Statement
Returning Non-Integer Values
Functions in Multiple Source Files
A Simple make File

The Concept of Variable Scope
Automatic Variables
Global (External) Variables
Static Variables
External Static Variables

The C Preprocessor
Symbolic Constants
Macro Substitution
File Inclusion

Pointers and Arrays
What is a Pointer?
Pointer Operators
Example: Pointers
Why Use Pointers?
Arrays (a Picture)
The & Operator
Pointers and Arrays
Pointer Arithmetic
Pointer Arithmetic (a Picture)
Arrays and Pointers
Array Names are Constant Pointers

Passing Arrays to Functions
Initializing Arrays

Advanced Pointers
Pointer Initialization
Command-Line Arguments
Strings and Character Pointers
Arrays of Pointers
Command-Line Arguments
Access Through Pointers
Functions and Pointers
Example: Functions and Pointers

Comparison of Structures and Arrays
Structure Definitions
Structure Declarations
Structure Parameter Passing by
Pointers to Structures
Structure Parameter Passing Again
Arrays of Structures
The malloc Routine

Appendix - File I/O in C
File Streams
Predefined Streams
The fprintf Function
The fscanf Function
fscanf() Examples
The fputs and fgets Functions
The fwrite and fread Functions
System I/O