Course Details

Previous Page


Optimizing and Debugging ANSI C Programs


Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number



Overview/Description
C is a general purpose language with standards specified by the American National Standards Institute (ANSI). This course demonstrates how to work with various built-in functions and use format specifiers. It covers storage classes, volatile variables, data modifiers and dynamic memory allocation (DMA). It also covers how to use the C preprocessor to optimize C programs.

Target Audience
Programmers who want to learn how to use program iterations in ANSI C and use C functions and pointers

Prerequisites
None

Expected Duration (hours)
2.0

Lesson Objectives

Optimizing and Debugging ANSI C Programs

  • start the course
  • use built in functions such as system(), delay(), and sleep() in C
  • use built in functions ceil() and floor()
  • use built in functions such as rand(), srand() to generate random value
  • list the categories of maths' functions such as cos() in C and demonstrate their use
  • use ctime to output date and time string using C
  • use format specifiers in C
  • describe storage classes, and describe, and use storage class specifiers
  • describe and use storage class modifiers
  • use volatile variables in C
  • describe the sign bit, use a signed data modifier to enable it for int or char data types, and use an unsigned modifier to disable it
  • use the short and long modifiers and change format specifers to change the data size of variables in C
  • describe dynamic memory allocation (DMA) and associated C functions and use dynamic memory allocation for strings in C
  • use dynamic memory allocation for structures in C
  • use dynamic memory allocation for arrays in C
  • reallocate memory in C
  • describe and generate linked lists using C
  • manipulate linked lists using C
  • describe the C preprocessor, and contrast it with the compiler
  • use the #define directive to define macros and use #undef to remove the definition in C programs
  • use the #include directive in a C program to include files
  • use conditional compilation directives in C programs
  • use the #pragma directive in C
  • use preprocessor directives such as _DATE_ , _TIME_, _FILE_, and _LINE_
  • describe methods to debug C programs and use the assert macro
  • understand how to optimize and debug ANSI C programs
  • Course Number:
    sd_ansi_a04_it_enus