Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons

© 2026 BraveProgrammer. All rights reserved.

  1. Courses
  2. /
  3. C Programming Fundamentals

Lesson 15 of 50 · c

Arrays

Duration: 8 mins

An array is a contiguous block of elements of the same type.

int numbers[5];                // uninitialized (indeterminate values)
int initialized[3] = {1,2,3}; // static initialization
int auto_init[3] = {0};        // all zeroes

You can obtain the number of elements with sizeof(arr) / sizeof(arr[0]). Multi‑dimensional arrays are arrays of arrays (row‑major order).

Previous: Pointer ArithmeticNext: Strings – Character Arrays