Sitemap
Level Up Coding

Coding tutorials and news. The developer homepage gitconnected.com && skilled.dev && levelup.dev

C PROGRAMMING MINIMALIST GUIDE | PART 11

Pointers in C

12 min readJan 15, 2025

--

Variables that store memory addresses of other variables.

Press enter or click to view image in full size
Photo by Alexander Hafemann on Unsplash

Read the full article at no cost by signing up for a free Medium plan

Table of Contents

Memory in C

To run the program you’ll need some free space in random access memory (RAM) — the temporary memory used during its execution. Each variable requires a specific amount of bytes and the program allocates this space as needed.

For example, an integer variable — which takes up 4 bytes — might start at address 0x150, and it will occupy the next 4 bytes from 0x150 to 0x153, reserving a block of bytes.

However, the address of the variable is given as the starting address only, in this case 0x150, the so-called base address.

--

--

Miro
Miro

Written by Miro

Writing to learn. Coding enthusiast, exploring health, psychology, and the world beyond the screen.