C Programming Techniques
Course Description
C is one of the most widely used programming languages due to its great flexibility. C is a structured programming language that supports high-level and low level programming. Therefore, C is used in many different areas including business, finance, operating systems and game applications. A number of other languages are based on C, such as C++ and Java, and therefore this course will prepare you to learn these languages also. This course aims to teach the ANSI C programming language. It assumes previous knowledge about computer programming.
Course Duration
3 days
Course Objectives
At the end of this course, the student should:
• Learn and practice the principles of programming
• Learn the characteristics of the C language and its applications
• Be familiar with various data types supported by the language
• Learn how to build structured programs using functions
• Learn and use abstraction mechanisms using structures, arrays and unions
• Understand and use the different storage classes of variables
• Learn how to write highly flexible programs using pointers and addresses
• Use string manipulation functions in C to handle character strings
• Use file input and output mechanisms in C programs
• Understand and use advanced features such as dynamic memory allocation and pointers to functions
• Learn and practice the principles of programming
• Learn the characteristics of the C language and its applications
• Be familiar with various data types supported by the language
• Learn how to build structured programs using functions
• Learn and use abstraction mechanisms using structures, arrays and unions
• Understand and use the different storage classes of variables
• Learn how to write highly flexible programs using pointers and addresses
• Use string manipulation functions in C to handle character strings
• Use file input and output mechanisms in C programs
• Understand and use advanced features such as dynamic memory allocation and pointers to functions
Course Content
Review of C Programming
Review of C data types; the const keyword; C Language Identifiers; Constant Literal Values; Expressions and Statements; Introduction to Program Input and Output; Operators
Functions
Function Definition; Function Prototype; Calling a Function; Iterative Constructs; the for Statement; the while
Statement; The do … while Statement
Arrays
Referencing Array Elements; Manipulation of an Array; Multidimensional Arrays; Array Initialisation;
Structures and Storage Classes
Structures; Structure Tags and Typedefs; Arrays of Structures; Unions; Storage Classes; C Program
Memory Configuration; C Variable Storage Classes
Pointers and Addresses
The "address of" Operator; Pointer Declarations; Indirection Operator; Pointers and Arrays; Pointer Arithmetic; Pointers and Functions
Strings and Characters
Reading and Writing Strings: Scanf(), Printf(); String.H; Copying And Joining Strings; Comparing Strings and Determining String Length; Finding Characters Within Strings
Input and Output Using Files
File Pointers—FILE *; Opening a File; Writing and Reading Values to/from Files; Closing a File
Advanced Topics
Dynamic Memory Allocation; Memory Allocation Functions; Pointers to Functions; Binary Files; Conditional Compilation
Review of C data types; the const keyword; C Language Identifiers; Constant Literal Values; Expressions and Statements; Introduction to Program Input and Output; Operators
Functions
Function Definition; Function Prototype; Calling a Function; Iterative Constructs; the for Statement; the while
Statement; The do … while Statement
Arrays
Referencing Array Elements; Manipulation of an Array; Multidimensional Arrays; Array Initialisation;
Structures and Storage Classes
Structures; Structure Tags and Typedefs; Arrays of Structures; Unions; Storage Classes; C Program
Memory Configuration; C Variable Storage Classes
Pointers and Addresses
The "address of" Operator; Pointer Declarations; Indirection Operator; Pointers and Arrays; Pointer Arithmetic; Pointers and Functions
Strings and Characters
Reading and Writing Strings: Scanf(), Printf(); String.H; Copying And Joining Strings; Comparing Strings and Determining String Length; Finding Characters Within Strings
Input and Output Using Files
File Pointers—FILE *; Opening a File; Writing and Reading Values to/from Files; Closing a File
Advanced Topics
Dynamic Memory Allocation; Memory Allocation Functions; Pointers to Functions; Binary Files; Conditional Compilation
Who should attend?
This course is designed for people who have some programming experience in C and wish to do more with the language
Pre-requisites
Students should be familiar with the C programming language.