Tag: cpp
All the articles with the tag "cpp".
-
Pass by Value vs Pass by Reference in C++: Performance and Mechanics
A definitive guide to parameter passing in C++. Master pass by value, pass by reference, pass by const reference, CPU register mechanics, and real-world performance trade-offs.
-
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.