lesson 6 OOP .pdf - Lesson 6 Arrays 6.0 Introduction In our...

This preview shows page 1 - 2 out of 3 pages.

Lesson 6: Arrays 6.0. Introduction In our previous lesson, we learnt about program control structures. Today we will learn about arrays. An array is a secondary data type that stores data of the same type in contiguous memory locations. The elements in the array are easier to access because they are stored in contiguous memory locations and are of the same type. 6.1. Lesson objectives By the end of this lesson, you will be able to: Define an array Declare and initialize array Discuss different types of arrays Describe advantages of arrays Describe disadvantages of arrays Write programs that use arrays 6.2. Lesson outline This lesson is structured as follows: 6.0. Introduction 6.1. Lesson objectives 6.2. Lesson outline 6.3. Definition of an array 6.4. Declaration of arrays 6.5. Initialization of arrays 6.6. Accessing arrays 6.7. Types of arrays 6.8. Advantages of arrays 6.9. Disadvantages of arrays 6.10. A program that uses array 6.11. Revision questions 6.12. Summary 6.13. Suggested reading 6.3. Definition

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture