Day 1: The Array Lie (Arrays vs Pointers in C)

Published: (January 7, 2026 at 01:05 AM EST)
1 min read
Source: Dev.to

Source: Dev.to

Introduction

Today marks Day 1 of my 30‑Day Coding Challenge to master C internals, algorithms, and database design.

Why am I doing this? In a world of AI and high‑level abstractions, understanding how memory works under the hood is what separates a coder from an engineer. I want to build that foundational strength.

The Array Lie

We often think of arrays as rigid lists. In C, the variable name of an array is actually just a pointer to the first element.

As shown in the snippet, numbers[1] is really just a human‑readable way of writing *(numbers + 1). The computer adds the size of the data type to the base address to find the value.

Array vs Pointer illustration

Source Code

📂 View the source code on GitHub:

Back to Blog

Related posts

Read more »

Day 1 of DSA: Arrays Fundamentals

Day 1: Arrays I chose arrays as the starting point for my DSA journey. Although I am not a complete beginner—I have learned Java and basic DSA earlier—I felt a...

Day 0: Starting My DSA Journey

Day 0 – Planning, Mindset & Commitment - Goal: Become strong in problem‑solving & interview‑ready - Starting level: Beginner / Revising basics - Daily commitme...