Iterations, Functions and Pointers in ANSI C


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



Overview/Description
C is a general purpose language with standards specified by the American National Standards Institute (ANSI). This course covers how to implement iterative programming with loops, and also how to work with built-in and user-defined functions and pointers. In this course, the instructor uses some non-standard Microsoft extensions. In these instances, the instructor uses quotes around the library names rather than the standard <> symbols.

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

Iterations, Functions and Pointers in ANSI C

  • start the course
  • use the while statement in C programs
  • use the do...while loop in C Programs
  • use nested if-else statements in C programs
  • use the for loop in C Programs
  • nest for loops in C Programs
  • use goto, break and continue in loops, and describe why goto should not be used and why break and continue should be avoided where possible
  • describe functions including declarations, and describe how functions can be accessed from 3rd party libraries or user-defined
  • work with functions with no parameters and no return type in C
  • work with functions with parameters but no return type in C
  • work with functions with parameters and return type in C
  • work with functions with no parameters but with a return type in C
  • implement recursive functions in C programs
  • generate user-defined header files to group functions and other common definitions and declarations in C
  • use the printf() function in C programs
  • use the scanf() function in C program
  • contrast and use getchar(), getch, and getche() for character input and display
  • describe pointers and demonstrate how to use the address-of operator, &, to return the address of a variable
  • use the dereference operator, *, in a C program
  • demonstrate how to declare pointers for different data types
  • use a pointer to point to another
  • describe and implement arithmetic operations on pointers in C
  • point to an array
  • store pointers in an array
  • point to a string in C
  • pass an address to a function and return an address from a function in C
  • describe and use generic pointers in C
  • how to use program iterations in ANSI C and use C functions
  • Course Number:
    sd_ansi_a02_it_enus

    Expertise Level
    Beginner