Tag: tutorial
All the articles with the tag "tutorial".
-
Linear Search in C++: How It Works, With Code and Complexity
Learn linear search in C++ with full working code. Search arrays and vectors step by step, handle not-found cases, and see how it compares to binary search.
-
Matrix Multiplication in C++: Full Program Explained Step by Step
Multiply two matrices in C++ with complete working code. Understand the triple loop, why inner dimensions must match, and how to do it with vectors safely.
-
Storage Classes in C++: static, extern, thread_local, and mutable
Understand storage classes in C++ with working examples. Learn how static, extern, thread_local, and mutable control a variable's lifetime, scope, and linkage.
-
Union in C++: What It Is and When You Should Use One
Learn what a union is in C++, how it shares one block of memory between members, how it differs from a struct, and when a tagged union is the safe choice.