| ANSI C Programming: Functions |
| Course Status: | Released |
| Course Language: | English |
| Course Duration: | 4 Hours |
| Deployment Options: | Online, Interactive CDs, Network, Downloads, Intranet |
| Audience |
| Programmers and software developers requiring a detailed explanation of how functions are written and implemented in ANSI C |
| Prerequisites |
| Awareness of programming concepts; experience of using a third-generation, high-level language such as Pascal, PL/1, BASIC, or FORTRAN |
| Course Aim |
| To enable the student to write functions in ANSI C; to explain how a C program is organized; to show how to use different kinds of variables |
| Learning Objectives |
| Outline the syntax of ANSI C functions. Explain the rules of scope and extent. Write ANSI C programs using C language storage specifiers |
| Topics Covered |
| Function basics - Introducing functions - Declaring and defining functions - Header files - Applying functions - Hands-on: Writing a function Formatting functions - Function format - Function return types - Stepping through a sample program - Hands-on: Returning a result Passing parameters - The return statement - Call by value or reference - Hands-on: Finding a mean value Storage classes and recursion - Storage classes and extent - Scope - Recursion - Hands-on: Calculating factorials |