Skip to Main Content
Programming in C, Third Edition
book

Programming in C, Third Edition

by Stephen G. Kochan
July 2004
Beginner to intermediate content levelBeginner to intermediate
576 pages
12h 3m
English
Sams
Content preview from Programming in C, Third Edition

Chapter 7. Working with Arrays

THE C LANGUAGE PROVIDES A CAPABILITY that enables you to define a set of ordered data items known as an array. This chapter describes how arrays can be defined and manipulated. In later chapters, you learn more about arrays to illustrate how well they work together with program functions, structures, character strings, and pointers.

Suppose you have a set of grades that you want to read into the computer, and suppose that you want to perform some operations on these grades, such as rank them in ascending order, compute their average, or find their median. In Program 6.2, you were able to calculate the average of a set of grades by simply adding each grade into a cumulative total as each grade was entered. However, ...

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, Fourth Edition

Programming in C, Fourth Edition

Stephen G. Kochan
C Programming Language, 2nd Edition

C Programming Language, 2nd Edition

Brian W. Kernighan, Dennis Ritchie
C How to Program, Fifth Edition

C How to Program, Fifth Edition

P. J. Deitel - Deitel & Associates, Inc., H. M. Deitel - Deitel & Associates, Inc.

Publisher Resources

ISBN: 9780768689068Purchase book