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
Chapter 3
Modular Decomposition: Functions
3.1 Introduction
A function is the main decomposition unit in a C program and it carries out a
specific task in a program. When a function is called, it can receive input data from
another function; the input data passed from another function is called an argument.
The function can also return output data when it completes execution.
This chapter provides more details on function definitions, invocation, and de-
composition. It also discusses the basic mechanisms for data transfer between two
functions; several examples are included. Scientific and mathematical built-in func-
tions are used in case studies.
3.2
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