wisconsin
Chapter 14: Functions

Chapter 14: Functions

Content locked

The catalog is public. Reading this content requires approved access.

Sign in to read
Chapter 14: Functions
14
Functions
14.1 Introduction
14.2 Functions in C
14.2.1 A Function with a Parameter
14.2.1.1 The Declaration
14.2.1.2 The Call
14.2.1.3 The Definition
14.2.1.4 The Return Value
14.2.2 Example: Area of a Ring
14.3 Implementing Functions in C
14.3.1 Run-Time Stack
14.3.2 Getting It All to Work
14.3.2.1 The Call
14.3.2.2 Starting the Callee Function
14.3.2.3 Ending the Callee Function
14.3.2.4 Returning to the Caller Function
14.3.2.5 Caller Save/Callee Save
14.3.3 Tying It All Together
14.4 Problem Solving Using Functions
14.4.1 Problem 1: Case Conversion
14.4.2 Problem 2: Pythagorean Triples
14.5 Summary
Exercises
Source