What you'll learn?

·     Demonstrate ability to develop and write useful C code.

·     Successfully manage to use C statements, operators, structures, functions, pointers , and data type

·     Use C Preprocessors when required

·     Write and read from files

Description

The C programming language was developed in 1972 by Dennis Ritchie at Bell Laboratories; one of its first uses was in the rewriting of the UNIX operating system. So, strictly speaking, C is a system programming language. However, it is also useful for application programming. On completion of this course, the students will know how to write useful programs using the language.

Audience :

Individuals who attended the Programming Concepts course of equivalent knowledge.

Topics :

NTRODUCTION

o  The Origins of the C Language

o  Differences between the various versions of C

o  C is a medium level language

o  Key words

o  Structure

o  Comments

o  Libraries

o  Terms

DATA TYPES

o  Identifiers

o  Declaring a variable

o  Formal parameters

o  Access modifiers

o  Storage class types

o  Variable initializations

o  Constants

o  Backslash character constants

o  Assignment statements

OPERATORS

o  Precedence of operators

FUNCTIONS

o  Passing an array to a function       

o  Passing parameters to main

o  Returning from a function

o  Function prototypes

o  The importance of prototyping

PROGRAM CONTROL STATEMENTS

o  Selection statements

o  Iteration statements

o  Jump statements

o  More about ?

o  Continue

ARRAYS

o  Single-dimension arrays

o  Passing single-dimension arrays to functions

o  Strings

o  Two-dimensional arrays    33

o  Passing two-dimensional arrays to functions

o  Arrays of strings

o  Array initialization

THE C PREPROCESSOR

o  define      35

o  #error

o  #include

o  #if, #else, #elif, #endif    

o  #ifdef, #ifndef     

o  #undef

o  #line

o  #pragma

o  Predefined macro names

INPUT AND OUTPUT

o  Input      

o  Output

o  Direct console I/O

POINTERS

o  Pointer variables

o  Pointer arithmetic

o  Pointer comparisons

o  Dynamic memory allocation

o  Arrays and pointers

o  Problems with pointers

STRUCTURES

o  Declaration of structures

o  Passing structures elements to functions

o  Passing entire structures to functions

o  Structure pointers

o  Arrays and structures within structures

o  Bit fields

o  Unions

o  Enumerations

o  typedef

FILE I/O

o  Buffered streams

o  Random access using streams

o  Handles

o  Advanced file I/O

o  Predefined I/O streams

LINKING, LIBRARIES AND HEADER FILES

o  The linker

o  Declaration versus definition

o  Relocatable versus absolute code

o  Library files versus object files

o  Header files

STRINGS

o  Strtok()

o  Converting numbers to And from strings

o  Text handling

DYNAMIC MEMORY ALLOCATION

Prerequisities :

Recommended Knowledge :

General knowledge for operating system, and Programming Concepts

Recommended Course(s) :

Category :

  • Programming

Training Materials :

YAT Official Courseware

Labs :

This course includes several labs to ensure you will gain the targeted skills and experience.

Related Courses