Introduction to C Programming

What will I study?

This is an intensive introduction to ANSI C programming. At the end of the course attendees should be reasonably confident in reading and writing ‘C’ programs and have a good practical understanding of advanced topics such as the use of C pointers, the relationship between pointers and arrays, as well as dynamic memory allocation and memory management.

Course Outline

1

Introduction

C Program history

How the C compiler works

The basic anatomy of a C program

2

Data types, operators and expressions (the basics)

Base data types and their sizes

Constants and declarations

Variable names

Arithemetic operators

Relational and logical operators

Increment and decrement operators

Assignment operators

Expressions

Operator precedence

Casting and type conversion

3

Program flow control

if - else

switch

while , do-while and for-loops

Statements and blocks

4

Functions

Functions and function prototypes

Returning values from functions

External variables and scope rules

Static variables

call by value and recursion

5

Pointers and arrays

Pointers and addresses

Pointers as arguments to functions

Arrays

The relationship of pointers and arrays

Pointer arithmetic

How C deals with multi-dimensional arrays

Arrays of pointers - their uses and initialization

Strings and string functions

6

Structures

Fundamentals of structures

Passing structures as arguments to functions

Returning structures as return values from functions

Arrays of structures

Pointers to structures

Using pointers to structures to pass values to a function and return values from a function

Typedef and its uses in developing well structured and maintainable code

7

An introduction to data structures and algorithms

Sorting arrays of records

Allocating and freeing memory (malloc and free)

Linked lists and queues

Indexing (table lookup, binary trees, hashing)

8

Input-Output

Standard input and standard output

Formatted output - printf

Formatted input - scanf

The dangers of scanf

File access and file I/O

An overview of input-output in a windowing environment

9

Further topics

The MACRO pre-processor and how to use it wisely

Unions

Bit fields

C Standard Library Functions

10

Reviews and Discussion

Course Completion Certificate after Assessment
The course is also suitable for recent engineering and computer science graduates who need to "cure" any bad (programming) habits they might have picked up at University.
Method of study: Trainer led with practical demonstrations and exercises.
Other IT specialist courses
You can repeat the course upto 2 times within a year period from the day of first attending the course. Call: 07341047304 or email us
× Success!  
× Info!  
× Warning!  
× Error!