Skip to content · ⁨דלג לתוכן⁩

1-D arrays: store, index, and traverse · ⁨מערכים 1D: אחסון, אינדקס וטיול⁩

English

A row of boxes

  • An array is a row of variables of the same type, kept side by side in memory.
  • int a[5]; makes room for five ints. They are one block, reached by number.
  • You can fill them when you create them: int a[] = {10, 20, 30}; makes an array of three.
עברית

שורה של קופסאות

  • מערך הוא שורה של משתנים מאותו סוג, שמורים צמודים זה לזה בזיכרון.
  • int a[5]; יוצר מקום לחמישה ints. הם בלוק אחד, הניתן לגישה לפי מספר.
  • ניתן למלא אותם בעת יצירתם: int a[] = {10, 20, 30}; יוצר מערך של שלושה.

Handout · ⁨חומר עזר⁩

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP