![]() |
Programming in C Language: Introduction
| Duration: 5 days |
| Participants: Technical users, applications programmers, and systems programmers. |
|
Objectives:
Upon successful completion of this course you will be able to:
- Discuss the basic structure and syntax of the C Programming Language. - Describe how an application program interfaces with the operating system. - Design and code structured C Language programs using all available control structures. - Compile and execute C Language programs in various operating system environments such as UNIX®, MS-WINDOWS, MS-DOS, and MVS. - Use the storage management capabilities of the C Programming Language. - Handle input/output processing using the standard C Language Library routines. - Effectively use arrays, pointers, and structures within a C Language program. - Use the C Language bitwise operators. - Access command line arguments from within a C Language program. |
|
Overview:
- This course provides experienced programmers with the ability to utilize the structure and syntax of the C Programming Language for commercial and systems programming applications. - Participants are prepared to design, code, test, and execute C Language programs making use of the facilities provided by the language. - The course material conforms to the ANSI Standard for C Language. |
|
Prerequisites:
- Working knowledge of another programming language. - Knowledge of an operating system and editor for program creation. |
| Format: Classroom lecture and lab sessions. |
|
Topic Outline:
- Introduction Philosophy Behind C Advantages and Disadvantages Language's Important Features - Organization Overall Organization of C Programs Components of a C Program Simple Function Description Entering and Exiting a C Program - Data Basic Data Representation Constants and Variables Identifier Naming Rules - Expressions and Operators Identifying and Using Expressions Basic Operators Assignment Arithmetic Compound Assignment Precedence and Associativity - Basic I/O Invoking Simple I/O Functions Terminal Oriented Character I/O Simple Formatted Output - Compilation Under the UNIX System Under MS/DOS (Microsoft) Under MVS - Statements Flow Control if switch break continue while do-while for goto More Operators Relational and Equality Logical Conditional - Functions I Traditional and ANSI Formats Passing Arguments by Value - Data II Review Basic Data Types Characteristics of Each Type Use of Constants Data Type Modifiers - Basic I/O II printf Options printf Format Specifications Field Width and Precision - Functions II Use of return Statement Functions Returning Integers Functions Returning Non-Integers Argument Promotion - Arrays and Strings Definition and Use of Arrays Strings and Character Arrays Arrays as Function Arguments - Pointers Definition of a Pointer Declaration and Use of Pointers Passing Pointers to Functions Pointer relationship to Array scanf Library Routine - Structures Declaration and Initialization Accessing Structure Members Pointers to Structures Arrays of Structures Structures and Functions Similar Constructs (Union, Enumeration) - Standard I/O Opening and Closing Files Reading and Writing Files Formatted Output Error Management - Storage Classes Definition of Storage Class Scope of Identifier Names Storage Class Characteristics Initialization Considerations - Bit Operators AND Operator Inclusive and Exclusive OR Operators Ones Complement Operator Shift Operators - Pointers II Brief Review of Pointers Arrays of Pointers Accessing Command Line Arguments - Appendices Lab Exercises Lab Solutions The ANSI Standard C More Clearly - Functions C More Clearly - Bit Operators C More Clearly - Conversions ANSI Extensions for Characters Compiler and Environmental Considerations BUG Alerts Suggested Reading List Preprocessor Overview C More Clearly - Operator Precedence |
|
|