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
  • Teach on BraveProgrammer

© 2026 BraveProgrammer. All rights reserved.

Pointers – Basics | C Programming Fundamentals lesson | BraveProgrammer
  1. Courses
  2. /
  3. C Programming Fundamentals

Lesson 13 of 50

·c

Pointers – Basics

12 mins

Course progress26%

What you'll learn

Keep these ideas in mind as you work through the lesson.

4 points
  • `int *p` declares a pointer to an integer.
  • `&var` yields the address of `var`.
  • `*p` reads/writes the value stored at the address `p` points to.
  • Never dereference a `NULL` or uninitialized pointer – you get undefined behavior.

A pointer holds the memory address of another variable.

int x = 10;
int *p = &x;   // p now points to x
printf("%d
", *p); // dereference → prints 10

Key concepts:

  • & address‑of operator.
  • * dereference operator.
  • Pointers are typed – an int* points to an int.
  • Uninitialized pointers contain garbage addresses – always initialize them to NULL.
Make it stickPractice what you've learned1 quiz · 3 practical tests · Optional activities from C Programming FundamentalsBrowse activities
Previous lessonVariable Scope & Storage ClassesContinue to lesson 14Pointer ArithmeticBack to C Programming Fundamentals curriculum