Home of real teaching & learning
  • Full support for teachers
  • Focus on critical thinking
  • Engaging classroom activities
  • Integrated student eBook
  • Assessed tasks / qBank
  • Practice exam questions

The InThinking Guarantee: Our sites are written by expert practitioners and not by AI

See our AI policy

Disclaimer: InThinking subject sites are neither endorsed by nor connected with the International Baccalaureate Organisation.

Don't miss out, find out!

Pseudocode 5: 1D Arrays

In computer science, a 1D array (one-dimensional array) is a data structure that stores homogeneous elements, each identified by an index or position. Each element in the array is accessed using an index. The indices typically start from 0. For example, in a 1D array ARR, the element at the first index ARR[0]. In this array, ARR[2] accesses the element at the third position, which is value 45. Indices 0 1 2 3 4 5 6 7...

Help