Skip to Main Content
Programming in C, Fourth Edition
book

Programming in C, Fourth Edition

by Stephen G. Kochan
August 2014
Beginner content levelBeginner
552 pages
15h 37m
English
Addison-Wesley Professional
Content preview from Programming in C, Fourth Edition

8. Working with Structures

Chapter 6, “Working with Arrays,” introduced the array that permits you to group elements of the same type into a single logical entity. To reference an element in the array, all that is necessary is that the name of the array be given together with the appropriate subscript.

The C language provides another tool for grouping elements together. This falls under the name of structures and forms the basis for the discussions in this chapter. As you will see, the structure is a powerful concept that you will use in many C programs that you develop.

This chapter will introduce several key aspects of structures, including

Defining structures

Passing structures to functions

Arrays of structures

Structures of arrays

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

Programming in C, Third Edition

Programming in C, Third Edition

Stephen G. Kochan
C Programming Language, 2nd Edition

C Programming Language, 2nd Edition

Brian W. Kernighan, Dennis Ritchie

Publisher Resources

ISBN: 9780132781206Purchase book