Data Structures and File Management 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 data structures such as arrays, strings, structures, and unions. It also covers file management using C. 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.1

Lesson Objectives

Data Structures and File Management in ANSI C

  • start the course
  • describe arrays and use one-dimensional arrays in C programs
  • access specific elements in an array, add and array elements
  • use two-dimensional arrays in C programs
  • use multi-dimensional array in C programs
  • describe strings as character arrays, contrast with character constants, and show how to initialize a string
  • read and write strings and characters and print to screen in C programs
  • use functions such as strcopy(), strcat(), strrev(), strupr(), strlwr(), strcmpi(), strncat(), and strncpy() to manipulate strings
  • contrast a structure with an array and declare a structure in a C program
  • declare and use nested structures in a C program
  • define an array with a structure data type in C
  • pass a structure to a function and return a structure from a function in C
  • point to a structure in C
  • describe bit fields and declare and use bit fields in C structures
  • differentiate between unions with structures and declare, initialize, and reference a union in a C program
  • use the dot operator and arrow operator in C
  • demonstrate how unions can be applied in C programs
  • describe the FILE pointer, files, streams, and buffers and show how to open and close a file using C
  • describe the functions used to read or write a file, one character at a time, using a C program
  • describe the functions used to read or write a file, one character at a time, using a C program
  • describe the functions used to read or write a file, one character at a time, using a C program
  • use fseek for random access to a file in C
  • write structures and arrays to file using C
  • use command line arguments for file management
  • use error handling functions such as ferror in file management scenarios
  • practice file management techniques with C
  • Course Number:
    sd_ansi_a03_it_enus

    Expertise Level
    Intermediate