Skip to Content
Embedded C Programming
book

Embedded C Programming

by Mark Siegesmund
September 2014
Beginner to intermediate
424 pages
10h 4m
English
Newnes
Content preview from Embedded C Programming
Chapter 7

Functions

Abstract

This chapter uses the previously learned C statements and expressions to explain how to properly make C functions. The main() function and user-defined functions are covered.

Much of this chapter deals with the various methods to pass data into a function, including pass by value, reference parameters, and default parameters. Function return values, the use of functions in expressions, and dealing with passing back complex types are all explained.

This chapter also covers the advanced topic of function overloading. Recursion is briefly introduced as an ineffective concept for use on PIC® microcontrollers.

Programming methodologies such as object-oriented and top-down are introduced.

Examples and exercises are ...

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

Practical C Programming

Practical C Programming

B. M. Harwani

Publisher Resources

ISBN: 9780128013144