C Program Compilation

  • Creating, Compiling and Running Your Program
  • Creating the program
  • Compilation
  • Running the program
  • The C Compilation Model
  • The Preprocessor
  • C Compiler
  • Assembler
  • Link Editor
  • Link Editor
  • Using Libraries
  • UNIX Library Functions
  • Finding Information about Library Functions

C Basics

  • History of C
  • Characteristics of C
  • Characteristics of C
  • Variables
  • Defining Global Variables
  • Printing Out and Inputting Variables
  • Constants
  • Operators
  • Order of Precedence
  • Exercises

Conditionals

  • The if statement
  • The ? operator
  • The switch statement
  • Exercises

Looping and Iteration

  • The for statement
  • The while statement
  • The do-while statement
  • break and continue
  • Exercises

Arrays and Strings

  • Single and Multi-dimensional Arrays
  • Strings
  • Exercises

Functions

  • void functions
  • Functions and Arrays
  • Function Prototyping
  • Exercises

Further Data Types

  • Structures
  • Defining New Data Types
  • Unions
  • Coercion or Type-Casting
  • Enumerated Types
  • Static Variables
  • Exercises

Pointer

  • What is a Pointer?
  • Pointer and Functions
  • Pointers and Arrays
  • Arrays of Pointers
  • Multidimensional arrays and pointers
  • Static Initialization of Pointer Arrays
  • Pointers and Structures
  • Common Pointer Pitfalls
  • Pointers and Structures
  • o Not assigning a pointer to memory address before using it o Illegal indirection
  • Exercise

Dynamic Memory Allocation and Dynamic Structures

  • Malloc, Sizeof, and Free
  • Calloc and Realloc
  • Linked Lists
  • Full Program: queue.c
  • Exercises

Advanced Pointer Topics

  • Pointers to Pointers
  • Command line input
  • Pointers to a Function
  • Exercises

Low Level Operators and Bit Fields

  • Bitwise Operators
  • Bit Fields
  • Bit Fields: Practical Example
  • A note of caution: Portability

C, UNIX and Standard Libraries

  • Advantages of using UNIX with C
  • Using UNIX System Calls and Library Functions
  • Bit Fields: Practical Example
  • A note of caution: Portability

The C Preprocessor

  • define
  • undef
  • include
  • if -- Conditional inclusion
  • Preprocessor Compiler Control
  • Other Preprocessor Commands
  • Exercises

Integer Functions and Sorting

  • Arithmetic Functions
  • Random Numbers
  • String Conversion
  • Searching and Sorting
  • Exercises

Mathematics:

  • Math Functions
  • Math Constants

Input & Output (I/O):stdio.h

  • Reporting Errors
  • => perror()
  • => errno
  • => exit()
  • Streams
  • Predefined Streams
  • Basic I/O
  • Formatted I/O
  • printf
  • scanf
  • Files
  • Reading and writing files
  • sprintf and sscan
  • Stream Status Enquiries
  • Low Level I/O

String Handling:

  • Basic String Handling Functions
  • String Searching
  • Character conversions and testing: ctype.h
  • Memory Operations:
  • Exercises
ENQUIRY FORM
FOLLOW US ON
SUBSCRIBE TO OUR NEWSLETTER