C in 100 Seconds: Store Five Numbers in One Variable — Arrays | Episode 10
0views
002:15
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
An array holds multiple values of the same type, all under one name. Curly braces initialize it. Indexing starts at zero. sizeof gives total
bytes — divide by one element to get the count.
Loop from zero to length, access each element with bracket notation. Arrays are mutable — assign to any index to change its value. Five
elements in, five elements out, one modified to ninety-nine.
Student code: https://github.com/GoCelesteAI/c-in-100-seconds/tree/main/episode10
What You'll Learn:
• Declaring and initializing arrays with curly braces
• Zero-based indexing — first element is [0]
• sizeof trick to get array length
• Iterating with a for loop
• Modifying elements by index
Next: Episode 11 — Strings
#c #programming #100seconds #learnc #arrays #index #sizeof #iteration #tutorial
Tags
c arrays, array index c, sizeof c, iterate array c, zero based indexing, c tutorial 2026, c beginner, 100 seconds, learn c, coding tutorial
Tags
c arraysarray index csizeof citerate array czero based indexingc tutorial 2026c beginner100 secondslearn ccoding tutorial