Posts
All the articles I've posted.
-
Pass by Value vs Pass by Reference in C++: Performance and Mechanics
Pass by value vs pass by reference in C++: a copy versus the caller's own variable. Learn when to use T, T&, const T& or a pointer, with examples.
-
References in C++: Aliases, Memory Mechanics, and Pointers Compared
Master C++ references. Learn how aliases operate in memory, const reference binding, reference vs pointer trade-offs, and how to avoid dangling references.
-
Pointers in C++: Memory Addresses, Dereferencing, and Heap Basics
A comprehensive guide to pointers in modern C++. Understand memory addresses, dereferencing, nullptr, pointer arithmetic, dynamic heap allocation, and memory safety.
-
Strings in C++: std::string vs C-Style Strings and Practical Operations
Master string manipulation in C++. Compare modern std::string with legacy C-style char arrays, learn concatenation, searching, slicing with substr, and input handling.