ANSI C Programming: Processing Records


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



Overview/Description
To describe how to write ANSI C programs for processing aggregate data objects individually, in arrays, and in lists

Target Audience
Programmers and software developers new to ANSI C

Prerequisites
Awareness of programming concepts; experience of using a third-generation, high-level language, such as Pascal, PL/1, BASIC, or FORTRAN

Expected Duration (hours)
4.0

Lesson Objectives

ANSI C Programming: Processing Records

  • use the correct syntax when declaring and defining structures in ANSI C.
  • define and declare a structure in ANSI C.
  • declare and define nested structures, distinguish between valid and invalid structures, access structure members, and assign data to a structure in ANSI C.
  • write an ANSI program that will store user input in a structure.
  • define a structure array in ANSI C.
  • define pointers to structures, access structure members, user pointers with nested structures, and define an array of structure pointers in ANSI C.
  • pass structures to functions using both pointers and copies of structures in ANSI C.
  • write an ANSI C program that passes a structure to a function as a formal parameter and returns a structure.
  • use the correct syntax for bit fields in ANSI C and identify the advantages and disadvantages of using them.
  • distinguish between unions and structures and declare and define a union in ANSI C.
  • use pointers to link two structures in ANSI C.
  • use sizeof with variables, arrays, unions and structures, redefine datatype names with typedef in ANSI C.
  • Course Number:
    116781_eng