Mentor Communications

Our Courses

Our Clients

Contact Us

Home

C Programming Workshop

Introduction

            Features

            A Simple C Program

            Using the Editor

            Compiling and Linking

            The Program Development Cycle

Building Blocks           

            Basic Data Types

            Variables and Strings

            Formatted output with printf( )

            Field Width and precision

            Receiving input with scanf( )

            Character functions

            String input and output

Operators, Expressions and Statements            

            Variables, identifiers and reserved words

            Constants - symbolic and ANSI

            Arithmetic operators

            Integer Arithmetic and data type mixing

            Increment/decrement operators

            Casting

            Assignment

            Expressions and precedence

Branch

            Relational operators

            True and false in C

            Logical operators - NOT, AND and OR

            if statements

            if else statements

            if else if statements

            Nested if statements

            The switch statement 

Loops

            The for loop - structure, operation

            The while loop

            The do while loop

            break and continue

            Nested loops

            Using a debugger

Functions               

            Simple functions

            Declarations vs. definitions

            Passing arguments to functions by value

            Returning data from functions

            Visibility and lifetime of variables

            Automatic and register variables

            Static and external variables

            Writing large programs

Arrays and strings

            Declaring, initializing and using arrays

            Exceeding array bounds

            Multi-dimensional arrays

            Array restrictions

            Passing arrays to functions by reference

            Strings and arrays

 Pointer Concepts         

            Pointers and data types

            Pointer operations

            Pointer arithmetic

            Returning multiple values from functions

            Allocating memory dynamically

            Returning a pointer from a function

            Strings and character pointers

            Command line arguments - argc and argv

Structures 

            Defining a structure template

            Declaring a structure variable

            Accessing structure members

            Arrays of structures

            Pointers to structures

            Passing structures to functions

            Returning structures from functions

File I/O                  

            Basic file concepts

            Opening a file with fopen( )

            File access methods

            Using a file pointer

            Using fread( ) and fwrite( )

            Random access with fseek( )