{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "35aa894b",
   "metadata": {},
   "source": "```{index} array type; array\n```\n\n(array)=\n\n# Arrays\n\nWhen a program needs to store many values of the same type, arrays provide a compact structure with indexed access. This chapter covers one-dimensional and two-dimensional arrays, including declaration, initialization, traversal, and method use.\n\n- **Array**: An array stores a fixed number of same-typed values under one name.\n- **Index**: An index selects a specific element by position.\n- **Traversal**: Loops let a program visit each array element systematically.\n- **Two-dimensional array**: A 2D array models grid-like data such as tables, boards, and matrices.\n\nArrays are the foundation for later data structures because they connect memory layout, indexing, loops, and collection-style thinking.\n"
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": "<h2>Video</h2>\n\n```{eval-rst}\n.. youtube:: IHMmPVEOT64\n   :width: 560\n   :height: 315\n```\n\n> *[C# arrays 🚗](https://youtube.com/watch?v=IHMmPVEOT64)* by Bro Code.\n>\n> This video remains hosted on YouTube and is the property of its original creator or rightsholder; it is embedded here via YouTube's official player for educational reference only.\n",
   "id": "intro-video"
  },
  {
   "cell_type": "markdown",
   "id": "learning-objectives",
   "metadata": {},
   "source": "<h2>Learning Objectives</h2>\n\nBy the end of this chapter, you will be able to:\n1. Declare, initialize, and access one-dimensional arrays\n2. Traverse arrays with `for` and `foreach` loops\n3. Use array indices safely and explain valid index ranges\n4. Declare and process two-dimensional rectangular arrays\n5. Pass arrays to methods and return arrays as results\n"
  },
  {
   "cell_type": "markdown",
   "id": "chapter-flow",
   "metadata": {},
   "source": "<h2>Chapter Flow</h2>\n\n```{tableofcontents}\n```\n"
  }
 ],
 "metadata": {
  "jupytext": {
   "cell_metadata_filter": "-all",
   "main_language": "python",
   "notebook_metadata_filter": "-all"
  },
  "language_info": {
   "name": "python"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
