Introduction to C Programming

Contact Us for Dates
5 days practical workshop for up to 12 people.

Contact us for Onsite Price

This course is designed to teach ANSI Standard C to programmers in other high-level languages. ANSI Standard C is a general-purpose programming language that is widely used in areas as diverse as operating systems and games. This course will teach you how to read and write ANSI Standard C code. The course explores concepts and syntax through lectures, discussion and hands-on lab exercises.

Who it is for

This training course is for developers who need to be able to develop applications using the C programming language.

Training Course Prerequisites

  • Delegates should have practical experience of programming in a high-level language

Chapters

Chapter 1 Introduction

  • Origins of C
  • C standards
  • Feature overview
  • "Hello, world!"

Chapter 2 Data Types, Variables And Operators

  • Data types - integers, characters, floating point
  • Declaring variables
  • Arithmetic operators
  • Logical operators
  • Bitwise operators
  • Precedence and associativity
  • Casting and type conversions

Chapter 3 Control Flow

  • if/else statements
  • switch statements
  • do and while loops
  • The for loop
  • goto
  • break and continue

Chapter 4 Functions

  • Declaring functions
  • Function prototypes
  • Using header files
  • Passing arguments
  • Return values
  • The compile/link model

Chapter 5 Arrays

  • Array representation in memory
  • Array declaration and access
  • Multi-dimensional arrays

Chapter 6 Pointers

  • Pointer concepts
  • Declaring and assigning pointers
  • Dereferencing pointers
  • Pointer arithmetic
  • Pointers and arrays
  • Passing arrays to functions
  • Dynamic memory allocation
  • Function pointers
  • typedef

Chapter 7 Strings

  • Strings as character arrays
  • Initializing strings
  • Working with strings
  • Command line arguments

Chapter 8 User-Defined Types

  • Enums
  • Structs
  • Declaring and using structs
  • Passing structs to functions
  • Pointers and structures

Chapter 9 I/O

  • printf
  • Format specifiers
  • scanf
  • File I/O
  • String I/O

Chapter 10 The Preprocessor

  • Preprocessor directives
  • Defining and using constants
  • Conditional compilation
  • Preprocessor macros

Chapter 11 Advanced Topics

  • Storage classes
  • Building programs using make