Tag: pointers
All the articles with the tag "pointers".
-
Linked Lists in C++: Build One From Scratch (Beginner's Guide)
Learn how linked lists work in C++. Build a singly linked list from scratch with nodes and pointers, insert and delete elements, and know when to use one.
-
C++ Reference vs Pointer: What's the Difference?
C++ reference vs pointer: the differences in syntax and behavior, when to use each, and the key rules — a practical guide for beginners who know pointers.
-
C++ Segmentation Fault: What It Is and How to Fix It
A C++ segmentation fault means your program touched memory it shouldn't. Learn the causes — null and dangling pointers, out-of-bounds — and how to fix them.
-
C++ Stack vs Heap: Memory Differences Explained with Examples
C++ stack vs heap explained: how each memory region works, why the stack is faster, when to use new and delete, and how smart pointers help prevent leaks.