Skip to content · ⁨ข้ามไปยังเนื้อหา⁩
English

DECLARE an array

  • An array stores many values under one name.
  • DECLARE Score : ARRAY[1:5] OF INTEGER makes room for 5 integers.
  • The numbers 1:5 are the first and last index.

ไทย

DECLARE แอลเลย์

  • แอลเลย์ เก็บหลายค่าภายใต้ชื่อเดียว
  • DECLARE Score : ARRAY[1:5] OF INTEGER สร้างพื้นที่สำหรับ integer 5 ตัว
  • ตัวเลข 1:5 คือ index แรกและสุดท้าย

อาร์เรย์ Score แบบ 1-D ที่มีห้าเซลล์; ดัชนีเริ่มตั้งแต่ 1 ถึง 5 ดังนั้น Score[1] จึงเป็นค่าแรก

Handout · ⁨เอกสารประกอบการเรียน⁩

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP