O'Reilly logo

Learn to Program with C by Noel Kalicharan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 8

image

Arrays

In this chapter, we will explain the following:

  • What is an array and how to declare one
  • How to store values in an array
  • How to read a known number of values into an array using a for loop
  • How to process elements of an array using a for loop
  • How to read an unknown number of values into an array using a while loop
  • How to extract a required element from an array with a subscript
  • How to find the sum of numbers stored in an array
  • How to find the average of numbers stored in an array
  • How to use an array to keep several counts
  • How to work with a string as an array of characters
  • How to reverse the elements in an array
  • How to write a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required