Introduction to C Language Programming

Course

Inhouse

£ 1,300 + VAT

Description

  • Type

    Course

  • Methodology

    Inhouse

  • Duration

    4 Days

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. Suitable for: All developers with knowledge of a computer system who wish to write C programs or simply require an introduction to programming.

About this course

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

Questions & Answers

Add your question

Our advisors and other users will be able to reply to you

Who would you like to address this question to?

Fill in your details to get a reply

We will only publish your name and question

Reviews

Course programme

AUDIENCE: All developers with knowledge of a computer system who wish to write C programs or simply require an introduction to programming.
PREREQUISITES: Basic windows familiarity. This class is ideal for newcomers to programming.
DURATION: 4 days. Hands on.
OBJECTIVES: 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.
COURSE CONTENT:
Elements of a C program
C keywords
Expressions
Statements
Statement Blocks
Function Blocks

Writing, Compiling and Linking a C Program
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

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

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

Operators and Selection Statements
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
The goto statement and labels
While loops
Do . . . while loops
For loops
Infinite loops with break
The continue statement

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

Storage Classes and Scope
Local scope
Global scope
Static variables
External variables
Register variables
Initialisation of variables

Introduction to Pointers
Defining a pointer variable
The asterisk
Scalars

The Concept of Indirection
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
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
Structures
Unions
Enum data type
Typedefs
The cast operator (revisited)
Bit fields

Disk File Operations
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

PG07/01

Introduction to C Language Programming

£ 1,300 + VAT