Introduction to C Language Programming

4 Day Course
Hands On
Code CCINTRO

Book Now - 1 Delivery Method Available:

Scheduled Online Onsite

Overview

This course provides a good working knowledge of the C Programming Language. Giving students hands-on experience with writing C Programs. The course develops good C Programming style and improved programming techniques, which can then be applied to other programming languages in the future.

This course is suitable for all developers with knowledge of a computer system who wish to write C programs or simply require an introduction to programming.

Training Partners

We work with the following best of breed training partners using our bulk buying power to bring you a wider range of dates, locations and prices.

Modules

Hide all

Elements of a C program (5 topics)

  • C keywords
  • Expressions
  • Statements
  • Statement Blocks
  • Function Blocks

Writing, Compiling and Linking a C Program (5 topics)

  • Comments on C
  • Header Files
  • The main ( ) function
  • Command line arguments (argv and argc)
  • The printf ( ) function

The Standard C Library

Recommended C Programming Style

C Data Types (4 topics)

  • Elementary Data Types; char, int, float, double
  • Defining Variables in C
  • Elementary Operators

Assignment (5 topics)

  • Addition
  • sizeof
  • Addresses vs. Contents of Variables; lvalue and rvalue
  • Using printf ( )
  • Data Type Modifiers; unsigned, signed, long, short

Operators and Selection Statements (9 topics)

  • More arithmetic operators
  • Relational operators
  • Bitwise operators
  • Shorthand form of operators
  • If statements
  • Logical operators
  • The switch statement
  • The break keyword
  • Precedence of operators

Loops (6 topics)

  • The goto statement and labels
  • While loops
  • Do . . . while loops
  • For loops
  • Infinite loops with break
  • The continue statement

Function Prototyping (6 topics)

  • Prototyping in C
  • Definition vs. Declaration
  • Types of prototype
  • No arguments
  • Variable arguments
  • Fixed number of arguments

Storage Classes and Scope (6 topics)

  • Local scope
  • Global scope
  • Static variables
  • External variables
  • Register variables
  • Initialisation of variables

Introduction to Pointers (3 topics)

  • Defining a pointer variable
  • The asterisk
  • Scalars

The Concept of Indirection (7 topics)

  • Using a pointer in an assignment
  • Rules for pointers
  • Pointers and Arrays
  • Arrays of char
  • Null pointers
  • Incrementing and decrementing pointers
  • Pointers as arguments to functions

More Advanced Techniques with Pointers (8 topics)

  • Using equality and relational operators with pointers
  • Pointer arithmetic
  • Multi-dimensional arrays
  • Using arrays of pointers
  • Allocating memory at run time
  • calloc the cast operator
  • Pointers to functions
  • Right-left rule for complex data types

Structures, Unions and Other Data Types (6 topics)

  • Structures
  • Unions
  • Enum data type
  • Typedefs
  • The cast operator (revisited)
  • Bit fields

Disk File Operations (12 topics)

  • Opening and closing a file
  • Reading and writing a file
  • Reading and writing binary files
  • File positioning
  • The C Preprocessor
  • Macro substitution using
  • # define, #undef
  • Using parameters in Macros
  • #include
  • Conditional
  • Compilation
  • #if, #ifdef, #endif

Prerequisites

Basic windows familiarity. This class is ideal for newcomers to programming.

or call:408-759-5074

Course PDF

Print

Share this Course

+1
Share

Recommend this Course

Sections