CS 70

Group 2: Statically-Sized Arrays of Primitives

  • LHS Cow speaking

    This group of topics relate to understanding how statically (known at compile time) sized arrays work in C++.

  • RHS Cow speaking

    Arrays are important building blocks to other data structures. It's important to understand how they work, both because you'll use them in your code in future weeks and because they'll be a useful point of comparison when we start analyzing the performance of more complicated data structures!

Topics

You will know that you have achieved this group of learning objectives when you are able to

  • Goal 2A: Array Definition:
    • List and define the four fundamental properties of C++'s (primitive) arrays.
  • Goal 2B: Array Characteristics:
    • Discuss the advantages and disadvantages of arrays as data structures.
  • Goal 2C: Use Arrays:
    • Write code to define and use statically-sized arrays of primitives.
  • Goal 2D: Array Errors:
    • Predict and interpret errors related to array indexing.

Need More Practice?

This group of goals are addressed in the following places:

(When logged in, completion status appears here.)