This is a 4 day hands on approach to C programming. It is intended as a generic approach to programming C, and is a pre-cursor to Unix API programming. If you are new to programming, but understand the logic and design process then this course will help you put that into practice. Or if you already have another language and need to learn C this will also help you.

ON COMPLETION

  • Understand the syntax and layout of a C program
  • Use variables and understand their types
  • Work with pointers
  • Work with loops and conditional statements
  • Create functions
  • Work with strings and user input
  • Understand different declarations and definitions
  • Store and retrieve information from files
  • Work with the command line
  • Create and use structures and unions

WHO SHOULD ATTEND?

New comers to programming or those wanting to know where to start, but need to use a compiled language.

COURSE WORK

The course work is based around a 50/50 approach to lecture and hands on giving the attendee the chance to really work with the language and see its potential.

PRE-REQUISITS

None, although if you have done any programming with a structured language before you will be at an advantage.

DURATION: 3 DAYS

PRICE: Call for latest

1st Day: Start 9:30am - Finish 5:00pm
Subsequent Days: Start 9:00am - Finish 5:00pm

COURSE CONTENT

Programming Basics

Compilation process, structure and important basics.

Variables & Printing

Types of variable, operators, declarations, printf, casting.

Pointers & Reading Into Variables

Declaration, accessing and using pointers, further data types, scanf.

Constants & Loops

Defining constants, header files, working with loops, breaking out early.

Conditional Statements

Working with conditions and where to use them, if, if else, switch, operators.

Functions

Creating, passing and returning values, pointers.

Characters & Arrays

Declaration, useage, keyboard control on input, reading and writing arrays and characters, library functions.

Declarations

Automatic, global, static and external, defining vs declaring.

File Handling

Files and how to create, read and write, working with file pointers, file security.

Command Line Arguments

Obtaining information from the command line.

Unions & Extras

What is a union and how to use one, typedef, sizeof and the system function.