Skip to content

Instantly share code, notes, and snippets.

View adamgoren's full-sized avatar

Adam Goren adamgoren

  • New York
View GitHub Profile
@adamgoren
adamgoren / index.md
Created December 5, 2019 16:36 — forked from ericandrewlewis/index.md
C++ Pointer Tutorial

C++ Pointer Tutorial

Because pointers can be ugh

"Regular" variables (not pointers)

To understand a pointer, let's review "regular" variables first. If you're familiar with a programming language without pointers like JavaScript, this is what you think when you hear "variable".

When declaring a variable by identifier (or name), the variable is synonymous with its value.