Blog
-
C++ extern Linkage — External vs Internal Linkage, extern
C++ extern linkage: external vs internal linkage, extern "C", ODR-safe headers, const globals, namespaces, and explicit template instantiation.
-
C++ friend Keyword: Access Control, Operators,
friend functions and classes grant access to private and protected members.
-
C++ Functions: Parameters, Return Values, Overloading,
Complete C++ function guide for beginners: declaration vs definition, pass by value/reference/pointer, return rules, RVO, default arguments.
-
C++ if / else / switch: Conditionals, Pitfalls, and switch
Complete guide to C++ conditionals: comparison and logical operators, switch vs if-else, fall-through, [[fallthrough]], floating-point compares, and com...
-
C++ Linkage and Storage Duration: extern, static,
External vs internal linkage, no linkage, and automatic/static/thread/dynamic storage.
-
C++ Loops Masterclass: for, while, do-while, Range-for,
Choose the right loop: counted for, condition-driven while, do-while for at-least-once, range-based for, break/continue rules, off-by-one, and floating-...
-
C++ Mutex & Lock — Mutual Exclusion, lock_guard,
C++ mutex and locks: std::mutex, lock_guard, unique_lock, std::lock, scoped_lock, recursive_mutex, timed_mutex, and avoiding deadlocks.
-
C++ Namespaces: Complete Guide to Name Boundaries
C++ namespaces explained: avoiding name collisions, using-declarations vs using-directives, nested namespaces, anonymous namespaces, aliases, ADL.
-
C++ Pointers Explained: Understand “Hard” Pointers in 5
C++ pointers explained with a street-address analogy: basics, swap, arrays, pitfalls, references, new/delete, smart pointers, const pointers.
-
C++ Range-Based for: auto, References, Temporaries,
Range-based for in C++: auto vs auto& vs const auto&, proxy iterators, temporaries, C++17 structured bindings, custom begin/end, and production patterns.