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 8

Arrays

Abstract

This chapter covers all aspects of C arrays. The proper use of subscripts for indexing various data types is shown with many examples. In addition to the most common single-dimension array, this chapter explains the use of multidimensional arrays as well.

The proper syntax for the initialization of arrays with initializers is covered, including dimensionless declarations. C strings as variables are introduced as constant arrays.

Lookup tables, searching arrays, and sorting arrays are all part of this chapter. The linear search, binary search, and Shell sort algorithms are shown in C.

Examples and exercises are for the popular PIC™ microcontroller manufactured by Microchip.

Keywords

Array

Subscript

Index

Multidimensional ...

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