ANSI C Programming: The Standard Library and Preprocessor


Overview/Description
To describe programming file and other I/O operations in ANSI C and how to implement facilities from the standard library

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


200 Minutes

Objectives :

ANSI C Programming: The Standard Library and Preprocessor

  • name the most common header files and list their uses and identify the functions used to read and write using standard I/O in ANSI C.
  • print and format output using the printf() function in ANSI C.
  • accept and format user input, using the scanf() function in ANSI C.
  • use the file pointer, open and close a file, get characters and strings from files, and put characters and strings into files in ANSI C.
  • list the characteristics of buffered I/O and identify the ANSI C functions that it uses.
  • complete the code that will create and write to a file, using buffered I/O functions in ANSI C.
  • list the common string handling functions in ANSI C and use them correctly.
  • list the characteristics of the argc and argv command-line arguments and use them to accept user input in ANSI C.
  • use the #include preprocessor directive to include a header file in a program and use #define to create identifiers and macros in ANSI C.
  • identify the preprocessor directives and macros used for conditional compiling, debugging, and diagnostics in ANSI C.

  • Course Number: 116840_eng