Skip to Main Content
Introduction to Computational Modeling Using C and Open-Source Tools
book

Introduction to Computational Modeling Using C and Open-Source Tools

by Jose M. Garrido
November 2013
Intermediate to advanced content levelIntermediate to advanced
461 pages
12h 1m
English
CRC Press
Content preview from Introduction to Computational Modeling Using C and Open-Source Tools
22 Introduction to Computational Modeling
2.6 Simple Functions
A function carries out a specific task in a program and is an internal decomposi-
tion unit because every function belongs to the program.
As mentioned previously, data declared within a function is known only to that
function—the scope of the data is local to the function. The local data in a function
has a limited lifetime; it only exists during execution of the function.
2.6.1 Function Definitions
A C program is normally decomposed into source files, and these are divided into
functions. These are function definitions that implement the functions in the source
program.
FIGURE 2.2: Structure ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computer Fundamentals and Programming in C (RMK)

Computer Fundamentals and Programming in C (RMK)

Anita Goel, Ajay Mittal

Publisher Resources

ISBN: 9781482216783