<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cpp From Scratch</title><link>https://cppfromscratch.site/</link><description>Plain answers to common C++ questions, from data types, operators and loops to classes, strings, containers and memory.</description><language>en</language><atom:link href="https://cppfromscratch.site/rss.xml" rel="self" type="application/rss+xml"/><item><title>Is C++ Hard to Learn?</title><link>https://cppfromscratch.site/is-c-hard/is-c-hard-to-learn-2/</link><guid isPermaLink="true">https://cppfromscratch.site/is-c-hard/is-c-hard-to-learn-2/</guid><description>Is C++ hard to learn? This guide explains which parts trip up beginners, how C++ compares with C, and a practical order for learning it step by step.</description><category>Is C++ Hard</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C More Difficult Than C++?</title><link>https://cppfromscratch.site/is-c-hard/is-c-more-difficult-than-c/</link><guid isPermaLink="true">https://cppfromscratch.site/is-c-hard/is-c-more-difficult-than-c/</guid><description>Is C more difficult than C++? Compare how each language asks for effort, from manual memory work in C to the many features and rules of C++, with examples.</description><category>Is C++ Hard</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C++ Difficult to Learn for Beginners?</title><link>https://cppfromscratch.site/is-c-hard/is-c-difficult-to-learn-for-beginners/</link><guid isPermaLink="true">https://cppfromscratch.site/is-c-hard/is-c-difficult-to-learn-for-beginners/</guid><description>New to programming? Learn what&apos;s easy about C++ at first, what usually feels hard, and habits that make the early months of learning it more manageable.</description><category>Is C++ Hard</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Which Is Better, Python or C?</title><link>https://cppfromscratch.site/is-c-hard/which-is-better-python-or-c/</link><guid isPermaLink="true">https://cppfromscratch.site/is-c-hard/which-is-better-python-or-c/</guid><description>Python or C? Python is quicker to start with, while C gives close control of memory and hardware. See how each fits your goals, with a side-by-side example.</description><category>Is C++ Hard</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C++ Better Than C?</title><link>https://cppfromscratch.site/is-c-better-than-c/is-c-better-than-c/</link><guid isPermaLink="true">https://cppfromscratch.site/is-c-better-than-c/is-c-better-than-c/</guid><description>C++ grew out of C and adds classes, templates, and a large standard library. Neither is better in every case. See how they differ and which suits your goals.</description><category>C++ vs C</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Does NASA Use C++ or Python?</title><link>https://cppfromscratch.site/is-c-better-than-c/does-nasa-use-c-or-python/</link><guid isPermaLink="true">https://cppfromscratch.site/is-c-better-than-c/does-nasa-use-c-or-python/</guid><description>NASA uses C++ and Python, along with C and Fortran. Flight software often relies on C and C++, while Python handles data analysis and tools. Here&apos;s how.</description><category>C++ vs C</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Code &quot;I Love You&quot; in C</title><link>https://cppfromscratch.site/is-c-better-than-c/how-to-code-i-love-you-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/is-c-better-than-c/how-to-code-i-love-you-in-c/</guid><description>Learn to print I love you in C with printf or puts. Includes a complete program, compile steps, common mistakes, and the C++ version using std::cout.</description><category>C++ vs C</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C Better Than F?</title><link>https://cppfromscratch.site/is-c-better-than-c/is-c-better-than-f/</link><guid isPermaLink="true">https://cppfromscratch.site/is-c-better-than-c/is-c-better-than-f/</guid><description>Is C better than F? F most often means Fortran or F#. Compare C with each, look at hello world code, and learn which fits your goals. Neither wins every job.</description><category>C++ vs C</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Which Is the No. 1 Coding Language?</title><link>https://cppfromscratch.site/is-c-better-than-c/which-is-the-no-1-coding-language/</link><guid isPermaLink="true">https://cppfromscratch.site/is-c-better-than-c/which-is-the-no-1-coding-language/</guid><description>No single coding language is No. 1 in every ranking. TIOBE, GitHub, and Stack Overflow measure different things. Here is how to read the lists.</description><category>C++ vs C</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C++ Harder Than Python?</title><link>https://cppfromscratch.site/is-c-harder-than-python/is-c-harder-than-python/</link><guid isPermaLink="true">https://cppfromscratch.site/is-c-harder-than-python/is-c-harder-than-python/</guid><description>For most beginners, C++ is harder than Python because it needs a compiler, explicit types and careful memory handling. See why, with a side-by-side example.</description><category>C++ vs Python</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Does NASA Use C or C++?</title><link>https://cppfromscratch.site/is-c-harder-than-python/does-nasa-use-c-or-c/</link><guid isPermaLink="true">https://cppfromscratch.site/is-c-harder-than-python/does-nasa-use-c-or-c/</guid><description>NASA uses both C and C++, depending on the project, and Python for analysis and tools. Here is where each language fits and why C and C++ both show up.</description><category>C++ vs Python</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C the Hardest Programming Language?</title><link>https://cppfromscratch.site/is-c-harder-than-python/is-c-the-hardest-programming-language-2/</link><guid isPermaLink="true">https://cppfromscratch.site/is-c-harder-than-python/is-c-the-hardest-programming-language-2/</guid><description>No language is the hardest for everyone, but C is hard for beginners because it trusts you with memory. Here is why C is difficult and what makes it easier.</description><category>C++ vs Python</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is It Better to Learn C or Python?</title><link>https://cppfromscratch.site/is-c-harder-than-python/is-it-better-to-learn-c-or-python/</link><guid isPermaLink="true">https://cppfromscratch.site/is-c-harder-than-python/is-it-better-to-learn-c-or-python/</guid><description>For most people starting out, Python is the better first language. C is worth learning too, especially for memory and hardware. Here is how to choose.</description><category>C++ vs Python</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Difference Between C++ and Java</title><link>https://cppfromscratch.site/difference-between-c-and-java/difference-between-c-and-java/</link><guid isPermaLink="true">https://cppfromscratch.site/difference-between-c-and-java/difference-between-c-and-java/</guid><description>C++ compiles to machine code and leaves memory to you, while Java runs on the JVM with garbage collection. See the key differences with side-by-side code.</description><category>C++ vs Java</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Can I Learn C in One Week?</title><link>https://cppfromscratch.site/difference-between-c-and-java/can-i-learn-c-in-one-week/</link><guid isPermaLink="true">https://cppfromscratch.site/difference-between-c-and-java/can-i-learn-c-in-one-week/</guid><description>Can you learn the basics of C in a week? See what a seven-day plan covers, what takes longer, such as pointers and memory, and how to practice.</description><category>C++ vs Java</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Write &quot;I Love You&quot; in Java</title><link>https://cppfromscratch.site/difference-between-c-and-java/how-to-write-i-love-you-in-java/</link><guid isPermaLink="true">https://cppfromscratch.site/difference-between-c-and-java/how-to-write-i-love-you-in-java/</guid><description>Print the message I love you in Java with a complete program, the commands to compile and run it, and the mistakes beginners make most often.</description><category>C++ vs Java</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Rust vs C++ Performance</title><link>https://cppfromscratch.site/rust-vs-c-performance/rust-vs-c-performance/</link><guid isPermaLink="true">https://cppfromscratch.site/rust-vs-c-performance/rust-vs-c-performance/</guid><description>Rust and C++ both compile to fast native code, so speed gaps are often small. Learn what drives performance in each, and how to read benchmarks fairly.</description><category>Rust vs C++</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is Rust Actually as Fast as C?</title><link>https://cppfromscratch.site/rust-vs-c-performance/is-rust-actually-as-fast-as-c/</link><guid isPermaLink="true">https://cppfromscratch.site/rust-vs-c-performance/is-rust-actually-as-fast-as-c/</guid><description>Is Rust as fast as C? Often close, since both use optimizing compilers and little runtime overhead. The answer mostly depends on the code you write.</description><category>Rust vs C++</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is Rust Losing Popularity?</title><link>https://cppfromscratch.site/rust-vs-c-performance/is-rust-losing-popularity/</link><guid isPermaLink="true">https://cppfromscratch.site/rust-vs-c-performance/is-rust-losing-popularity/</guid><description>Is Rust losing popularity? Surveys show strong admiration but modest usage, and results depend on the measure. Here is how to read the numbers.</description><category>Rust vs C++</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Why Does Linus Torvalds Not Like C++?</title><link>https://cppfromscratch.site/rust-vs-c-performance/why-does-linus-torvalds-not-like-c/</link><guid isPermaLink="true">https://cppfromscratch.site/rust-vs-c-performance/why-does-linus-torvalds-not-like-c/</guid><description>Linus Torvalds has criticized C++ for years, mainly over the Linux kernel. Here is what he has said, and the technical reasons behind the objections.</description><category>Rust vs C++</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Will Rust Ever Overtake C++?</title><link>https://cppfromscratch.site/rust-vs-c-performance/will-rust-ever-overtake-c/</link><guid isPermaLink="true">https://cppfromscratch.site/rust-vs-c-performance/will-rust-ever-overtake-c/</guid><description>Will Rust overtake C++? Replacing decades of C++ code is slow, and C++ keeps evolving. Rust will likely grow in new projects, but a takeover is far off.</description><category>Rust vs C++</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C++ a Low-Level Language?</title><link>https://cppfromscratch.site/is-c-a-low-level-language/is-c-a-low-level-language/</link><guid isPermaLink="true">https://cppfromscratch.site/is-c-a-low-level-language/is-c-a-low-level-language/</guid><description>C++ mixes high-level features like classes, templates and the standard library with low-level control of pointers and memory. Here is where it fits.</description><category>Low Level or High Level</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are 10 High-Level Programming Languages?</title><link>https://cppfromscratch.site/is-c-a-low-level-language/what-are-10-high-level-programming-languages/</link><guid isPermaLink="true">https://cppfromscratch.site/is-c-a-low-level-language/what-are-10-high-level-programming-languages/</guid><description>Ten widely used high-level programming languages, from Python and Java to Swift and Kotlin, with a short note on what each is typically used for.</description><category>Low Level or High Level</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Should I Learn C++?</title><link>https://cppfromscratch.site/should-i-learn-c/should-i-learn-c/</link><guid isPermaLink="true">https://cppfromscratch.site/should-i-learn-c/should-i-learn-c/</guid><description>C++ is worth learning for games, embedded systems and performance-critical software, but it is demanding. Here is how to decide if it suits your goals.</description><category>Should I Learn C++</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How Useful Is Learning C?</title><link>https://cppfromscratch.site/should-i-learn-c/how-useful-is-learning-c/</link><guid isPermaLink="true">https://cppfromscratch.site/should-i-learn-c/how-useful-is-learning-c/</guid><description>Learning C is most useful for embedded devices, operating systems and understanding memory. For web or data work, other languages are often quicker.</description><category>Should I Learn C++</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Learning C++ After Python</title><link>https://cppfromscratch.site/learning-c-after-python/learning-c-after-python/</link><guid isPermaLink="true">https://cppfromscratch.site/learning-c-after-python/learning-c-after-python/</guid><description>Learning C++ after Python: which skills carry over, what is new (types, compiling, pointers, memory), and a step-by-step order for learning them.</description><category>Learning After Python</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C Harder to Learn Than Python?</title><link>https://cppfromscratch.site/learning-c-after-python/is-c-harder-to-learn-than-python/</link><guid isPermaLink="true">https://cppfromscratch.site/learning-c-after-python/is-c-harder-to-learn-than-python/</guid><description>For most beginners, C is harder to learn than Python because of pointers, manual memory and explicit types. Here is why, with side-by-side examples.</description><category>Learning After Python</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C Still Worth Learning Today?</title><link>https://cppfromscratch.site/learning-c-after-python/is-c-still-worth-learning-today/</link><guid isPermaLink="true">https://cppfromscratch.site/learning-c-after-python/is-c-still-worth-learning-today/</guid><description>C is still used for operating systems, embedded devices and many tools. Here is how to decide if learning C is worth your time, and how it relates to C++.</description><category>Learning After Python</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The Latest C++ Standard</title><link>https://cppfromscratch.site/latest-c-standard/the-latest-c-standard/</link><guid isPermaLink="true">https://cppfromscratch.site/latest-c-standard/the-latest-c-standard/</guid><description>C++23 is the most recent C++ standard at the time of writing, with C++26 next. Here is what changed, how versions are named, and how to compile for each.</description><category>C++ Standards</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the C Standards? C89, C99, C11 and Beyond</title><link>https://cppfromscratch.site/latest-c-standard/what-are-the-c-standards-c89-c99-c11/</link><guid isPermaLink="true">https://cppfromscratch.site/latest-c-standard/what-are-the-c-standards-c89-c99-c11/</guid><description>The C standards explained: C89, C99, C11, C17 and C23, what each added, why they matter for portable code and how to choose one with the compiler flag.</description><category>C++ Standards</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Primitive Data Types in C++</title><link>https://cppfromscratch.site/primitive-data-types-in-c/primitive-data-types-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/primitive-data-types-in-c/primitive-data-types-in-c/</guid><description>A practical guide to C++ primitive data types, covering bool, char, int, float and double, their typical sizes, and common pitfalls to avoid.</description><category>Primitive Data Types</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the 7 Primitive Data Types in JavaScript?</title><link>https://cppfromscratch.site/primitive-data-types-in-c/what-are-the-7-primitive-data-types-in/</link><guid isPermaLink="true">https://cppfromscratch.site/primitive-data-types-in-c/what-are-the-7-primitive-data-types-in/</guid><description>The seven primitive data types in JavaScript: string, number, bigint, boolean, undefined, symbol and null, with examples and how they differ from C++.</description><category>Primitive Data Types</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the 7 Types of Data?</title><link>https://cppfromscratch.site/primitive-data-types-in-c/what-are-the-7-types-of-data/</link><guid isPermaLink="true">https://cppfromscratch.site/primitive-data-types-in-c/what-are-the-7-types-of-data/</guid><description>The seven basic data types many C++ tutorials list: bool, char, wchar_t, int, float, double and void, with what each one holds and how it is used.</description><category>Primitive Data Types</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is Type Casting in C?</title><link>https://cppfromscratch.site/primitive-data-types-in-c/what-is-type-casting-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/primitive-data-types-in-c/what-is-type-casting-in-c/</guid><description>How type casting works in C and C++, covering automatic conversions, explicit casts, static_cast and the mistakes beginners make most often, with examples.</description><category>Primitive Data Types</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is long long in C++?</title><link>https://cppfromscratch.site/what-is-long-long-in-c/what-is-long-long-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/what-is-long-long-in-c/what-is-long-long-in-c/</guid><description>long long is a C++ integer type at least 64 bits wide. Learn its range, how to declare and print it, and when to use it instead of int, with examples.</description><category>long long</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Long Integer?</title><link>https://cppfromscratch.site/what-is-long-long-in-c/what-is-a-long-integer/</link><guid isPermaLink="true">https://cppfromscratch.site/what-is-long-long-in-c/what-is-a-long-integer/</guid><description>A long integer is a whole-number type declared with the keyword long. Learn its minimum sizes, how the L suffix works and when to use long long.</description><category>long long</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Signed vs Unsigned Integers in C++</title><link>https://cppfromscratch.site/signed-vs-unsigned-in-c/signed-vs-unsigned-integers-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/signed-vs-unsigned-in-c/signed-vs-unsigned-integers-in-c/</guid><description>Learn how signed and unsigned integers differ in C++, including their value ranges, wraparound, sign bits and the comparison bugs that mixing them causes.</description><category>Signed vs Unsigned</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Do Signed and Unsigned Mean in Binary?</title><link>https://cppfromscratch.site/signed-vs-unsigned-in-c/what-do-signed-and-unsigned-mean-in-binary/</link><guid isPermaLink="true">https://cppfromscratch.site/signed-vs-unsigned-in-c/what-do-signed-and-unsigned-mean-in-binary/</guid><description>Binary is the same bits read two ways. Unsigned numbers hold zero and positive values, while signed numbers use the leftmost bit for negatives too.</description><category>Signed vs Unsigned</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is 11111111 in Signed Binary?</title><link>https://cppfromscratch.site/signed-vs-unsigned-in-c/what-is-11111111-in-signed-binary/</link><guid isPermaLink="true">https://cppfromscratch.site/signed-vs-unsigned-in-c/what-is-11111111-in-signed-binary/</guid><description>11111111 is 255 as an unsigned 8-bit number and -1 as a signed one in two&apos;s complement. Here is how the sign bit changes the reading, with C++ code.</description><category>Signed vs Unsigned</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What double Does in C++</title><link>https://cppfromscratch.site/what-does-double-do-in-c/what-double-does-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/what-does-double-do-in-c/what-double-does-in-c/</guid><description>In C and C++, double stores decimal numbers with about 15 significant digits. Learn how to declare, print, read and compare double values safely.</description><category>double and float</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Can I Use %f for double in C?</title><link>https://cppfromscratch.site/what-does-double-do-in-c/can-i-use-f-for-double-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/what-does-double-do-in-c/can-i-use-f-for-double-in-c/</guid><description>Yes, for printing: printf uses %f for a double. Reading with scanf needs %lf, and mixing them up can give wrong results. Examples are included.</description><category>double and float</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Size of a float Data Type?</title><link>https://cppfromscratch.site/what-does-double-do-in-c/what-is-the-size-of-a-float-data/</link><guid isPermaLink="true">https://cppfromscratch.site/what-does-double-do-in-c/what-is-the-size-of-a-float-data/</guid><description>On most common systems a float is 4 bytes with about 6 or 7 significant digits. Learn why the size can vary across compilers and how to check it with sizeof.</description><category>double and float</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The Minimum Int Value in C++</title><link>https://cppfromscratch.site/c-int-min/the-minimum-int-value-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-int-min/the-minimum-int-value-in-c/</guid><description>Learn the minimum int value in C++: INT_MIN from climits, usually -2,147,483,648 on 32-bit systems. See how to get it in code and avoid overflow traps.</description><category>Integer Limits</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is INT_MAX 1e9?</title><link>https://cppfromscratch.site/c-int-min/is-int-max-1e9/</link><guid isPermaLink="true">https://cppfromscratch.site/c-int-min/is-int-max-1e9/</guid><description>No. INT_MAX is usually 2,147,483,647, while 1e9 is one billion, a double literal that fits inside a 32-bit int. Here is how to check both values.</description><category>Integer Limits</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The sizeof Operator in C++</title><link>https://cppfromscratch.site/sizeof-function-in-c/the-sizeof-operator-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/sizeof-function-in-c/the-sizeof-operator-in-c/</guid><description>Learn how the sizeof operator in C++ works: what it returns in bytes, how it handles arrays, pointers and structs, and common mistakes to avoid.</description><category>sizeof</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is int 2 or 4 Bytes in C?</title><link>https://cppfromscratch.site/sizeof-function-in-c/is-int-2-or-4-bytes-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/sizeof-function-in-c/is-int-2-or-4-bytes-in-c/</guid><description>The size of int in C depends on the platform. The standard sets a 16-bit minimum, and most current systems use 4 bytes. Here&apos;s how to check yours.</description><category>sizeof</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is sizeof() a Function in C?</title><link>https://cppfromscratch.site/sizeof-function-in-c/is-sizeof-a-function-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/sizeof-function-in-c/is-sizeof-a-function-in-c/</guid><description>No, sizeof() is an operator built into C, not a function. Learn why it looks like a function, how it differs from one, and when parentheses are needed.</description><category>sizeof</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is sizeof() in Bytes?</title><link>https://cppfromscratch.site/sizeof-function-in-c/is-sizeof-in-bytes/</link><guid isPermaLink="true">https://cppfromscratch.site/sizeof-function-in-c/is-sizeof-in-bytes/</guid><description>Yes, sizeof() returns sizes in bytes in C and C++. Learn what a byte means here, how sizeof works with arrays, and why it counts bytes, not elements.</description><category>sizeof</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are %s and %d in C?</title><link>https://cppfromscratch.site/sizeof-function-in-c/what-are-s-and-d-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/sizeof-function-in-c/what-are-s-and-d-in-c/</guid><description>In C, %d prints an int and %s prints a string. Here is what these format specifiers mean, how printf uses them, and how to avoid type mismatches.</description><category>sizeof</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>typeof and decltype in C++</title><link>https://cppfromscratch.site/typeof-in-c/typeof-and-decltype-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/typeof-in-c/typeof-and-decltype-in-c/</guid><description>How typeof (C23) and decltype (C++11) find the type of an expression, with examples of references, const types, unevaluated operands and templates.</description><category>typeof and decltype</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Use typeof in JavaScript?</title><link>https://cppfromscratch.site/typeof-in-c/how-to-use-typeof-in-javascript/</link><guid isPermaLink="true">https://cppfromscratch.site/typeof-in-c/how-to-use-typeof-in-javascript/</guid><description>typeof in JavaScript returns a string naming a value&apos;s type, such as &apos;number&apos;. Learn the syntax, the quirks with null and arrays, and safe checks.</description><category>typeof and decltype</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Enums in C++ With Examples</title><link>https://cppfromscratch.site/enum-example-in-c/enums-in-c-with-examples/</link><guid isPermaLink="true">https://cppfromscratch.site/enum-example-in-c/enums-in-c-with-examples/</guid><description>Learn enums in C++ with clear examples: syntax, automatic values, enum class, switch statements, underlying types, and common mistakes to avoid.</description><category>Enums</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are %d and %f Called in C?</title><link>https://cppfromscratch.site/enum-example-in-c/what-are-d-and-f-called-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/enum-example-in-c/what-are-d-and-f-called-in-c/</guid><description>%d and %f are format specifiers used by printf and scanf. Learn what each one means in C, how to use them correctly, and how to print enum values.</description><category>Enums</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is an enum in C? Explained With an Example</title><link>https://cppfromscratch.site/enum-example-in-c/what-is-an-enum-in-c-explained-with/</link><guid isPermaLink="true">https://cppfromscratch.site/enum-example-in-c/what-is-an-enum-in-c-explained-with/</guid><description>An enum is a named list of integer constants. This guide shows how enums work in C with a short, complete example, and how C++ differs in syntax.</description><category>Enums</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is an Enum? A Simple Example</title><link>https://cppfromscratch.site/enum-example-in-c/what-is-an-enum-a-simple-example/</link><guid isPermaLink="true">https://cppfromscratch.site/enum-example-in-c/what-is-an-enum-a-simple-example/</guid><description>Enum is short for enumeration. See a simple enum example in C++ that names traffic light states, and learn why the names make code easier to read.</description><category>Enums</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Purpose of Using an Enum?</title><link>https://cppfromscratch.site/enum-example-in-c/what-is-the-purpose-of-using-an-enum/</link><guid isPermaLink="true">https://cppfromscratch.site/enum-example-in-c/what-is-the-purpose-of-using-an-enum/</guid><description>Enums replace unclear numbers with names. Learn why enums make code easier to read, reduce typos, and work well with switch statements in C++.</description><category>Enums</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Designated Initializers in C++</title><link>https://cppfromscratch.site/c-designated-initializers/designated-initializers-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-designated-initializers/designated-initializers-in-c/</guid><description>Learn C++20 designated initializers: name struct members in a brace list, follow the aggregate rules, avoid common compile errors, and compare with C99.</description><category>Declaration and Initialization</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Array Declaration and Initialization in C Explained</title><link>https://cppfromscratch.site/c-designated-initializers/array-declaration-and-initialization-in-c-explained/</link><guid isPermaLink="true">https://cppfromscratch.site/c-designated-initializers/array-declaration-and-initialization-in-c-explained/</guid><description>Learn array declaration and initialization in C: set sizes, fill elements with braces, use {0} to zero an array, and avoid common size mistakes.</description><category>Declaration and Initialization</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Declaration in C?</title><link>https://cppfromscratch.site/c-designated-initializers/what-is-a-declaration-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-designated-initializers/what-is-a-declaration-in-c/</guid><description>A declaration tells the compiler a name and its type, such as a variable or function. Learn how it differs from a definition in C, with examples.</description><category>Declaration and Initialization</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is an Initializer?</title><link>https://cppfromscratch.site/c-designated-initializers/what-is-an-initializer/</link><guid isPermaLink="true">https://cppfromscratch.site/c-designated-initializers/what-is-an-initializer/</guid><description>An initializer gives a variable its starting value. Learn the = and brace forms in C++, what {} does, and how narrowing rules affect each one.</description><category>Declaration and Initialization</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Difference Between Declaration and Initialization in C?</title><link>https://cppfromscratch.site/c-designated-initializers/what-is-the-difference-between-declaration-and-initialization/</link><guid isPermaLink="true">https://cppfromscratch.site/c-designated-initializers/what-is-the-difference-between-declaration-and-initialization/</guid><description>Declaration, initialization, and assignment are easy to mix up. Learn what each one does in C, with short examples and a quick table of the key differences.</description><category>Declaration and Initialization</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The Conditional Operator in C++</title><link>https://cppfromscratch.site/conditional-operator-in-c/the-conditional-operator-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/conditional-operator-in-c/the-conditional-operator-in-c/</guid><description>Learn the C++ conditional operator, written condition ? a : b. See its syntax, how it picks one value, nesting rules, type checks and common mistakes.</description><category>Conditional Operator</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Syntax of a Conditional Statement?</title><link>https://cppfromscratch.site/conditional-operator-in-c/what-is-the-syntax-of-a-conditional-statement/</link><guid isPermaLink="true">https://cppfromscratch.site/conditional-operator-in-c/what-is-the-syntax-of-a-conditional-statement/</guid><description>The syntax of a conditional statement in C++: if, else, else if and switch, with short code examples and common mistakes to avoid when writing conditions.</description><category>Conditional Operator</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Comparison Operators in C++</title><link>https://cppfromscratch.site/c-comparison-operators/comparison-operators-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-comparison-operators/comparison-operators-in-c/</guid><description>Learn C++ comparison operators: ==, !=, &lt;, &gt;, &lt;= and &gt;=, how they return bool, common mistakes, and how to compare strings and floating-point numbers safely.</description><category>Comparison Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Operator Is Used to Compare Two Values?</title><link>https://cppfromscratch.site/c-comparison-operators/what-operator-is-used-to-compare-two-values/</link><guid isPermaLink="true">https://cppfromscratch.site/c-comparison-operators/what-operator-is-used-to-compare-two-values/</guid><description>Comparison operators compare two values in C and C++: ==, !=, &lt;, &gt;, &lt;= and &gt;=. Each one returns true or false, with a short example for each one.</description><category>Comparison Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Which Operator Is || in C?</title><link>https://cppfromscratch.site/c-comparison-operators/which-operator-is-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-comparison-operators/which-operator-is-in-c/</guid><description>In C, || is the logical OR operator. It gives 1 when at least one side is true, and it skips the right side when the left side is already true.</description><category>Comparison Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Assignment Operators in C++</title><link>https://cppfromscratch.site/c-assignment-operators/assignment-operators-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-assignment-operators/assignment-operators-in-c/</guid><description>Learn about C++ assignment operators: the = operator, compound forms like += and -=, chaining, and common mistakes, with short code examples.</description><category>Assignment Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are ++i and i++ in C?</title><link>https://cppfromscratch.site/c-assignment-operators/what-are-i-and-i-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-assignment-operators/what-are-i-and-i-in-c/</guid><description>The ++i and i++ operators both add one to a variable, but ++i uses the new value and i++ uses the old one. Examples show the difference in C.</description><category>Assignment Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the &amp; and * Operators in C?</title><link>https://cppfromscratch.site/c-assignment-operators/what-are-the-and-operators-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-assignment-operators/what-are-the-and-operators-in-c/</guid><description>The &amp; operator gets the address of a variable and the * operator reads or changes the value at an address. Here is how both work, with code examples.</description><category>Assignment Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does Assignment Operator Mean?</title><link>https://cppfromscratch.site/c-assignment-operators/what-does-assignment-operator-mean/</link><guid isPermaLink="true">https://cppfromscratch.site/c-assignment-operators/what-does-assignment-operator-mean/</guid><description>The assignment operator is the equals sign, =. It stores the value on its right in the variable on its left, as this short example clearly shows.</description><category>Assignment Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Which Operator Is Used for Assignment in C?</title><link>https://cppfromscratch.site/c-assignment-operators/which-operator-is-used-for-assignment-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-assignment-operators/which-operator-is-used-for-assignment-in-c/</guid><description>The operator for assignment in C is the single equals sign, =. Here is how it compares with ==, +=, and other symbols that are easy to mix up.</description><category>Assignment Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The Increment Operator in C++</title><link>https://cppfromscratch.site/c-increment-operator/the-increment-operator-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-increment-operator/the-increment-operator-in-c/</guid><description>Learn how the C++ increment operator works, with prefix and postfix forms, loop counters, array indexes, pointers, and common mistakes to avoid.</description><category>Increment Operator</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is an Increment in Computing?</title><link>https://cppfromscratch.site/c-increment-operator/what-is-an-increment-in-computing/</link><guid isPermaLink="true">https://cppfromscratch.site/c-increment-operator/what-is-an-increment-in-computing/</guid><description>Learn what an increment means in computing, where counters and loop variables use one, and how C++ writes an increment using the ++ operator.</description><category>Increment Operator</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Prefix Increment Operator?</title><link>https://cppfromscratch.site/c-increment-operator/what-is-the-prefix-increment-operator/</link><guid isPermaLink="true">https://cppfromscratch.site/c-increment-operator/what-is-the-prefix-increment-operator/</guid><description>The prefix increment operator adds one before the value is used. Learn how ++x works in C++, how it differs from x++, and why it matters in code.</description><category>Increment Operator</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Why Is ++i Better Than i++?</title><link>https://cppfromscratch.site/c-increment-operator/why-is-i-better-than-i/</link><guid isPermaLink="true">https://cppfromscratch.site/c-increment-operator/why-is-i-better-than-i/</guid><description>Is ++i really better than i++? Learn why C++ programmers often prefer prefix increment, when postfix still makes sense, and what the copy costs.</description><category>Increment Operator</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Unary Operators in C++</title><link>https://cppfromscratch.site/unary-operators-in-c/unary-operators-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/unary-operators-in-c/unary-operators-in-c/</guid><description>Learn what unary operators in C++ are, from the one-operand symbols like !, ~, ++ and * to prefix vs postfix, precedence and common mistakes, with examples.</description><category>Unary Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are Unary and Ternary Operators?</title><link>https://cppfromscratch.site/unary-operators-in-c/what-are-unary-and-ternary-operators/</link><guid isPermaLink="true">https://cppfromscratch.site/unary-operators-in-c/what-are-unary-and-ternary-operators/</guid><description>Learn the difference between unary and ternary operators in C++. A unary operator takes one operand and a ternary operator takes three, as in ?:.</description><category>Unary Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Which Logical Operator Is a Unary Operator?</title><link>https://cppfromscratch.site/unary-operators-in-c/which-logical-operator-is-a-unary-operator/</link><guid isPermaLink="true">https://cppfromscratch.site/unary-operators-in-c/which-logical-operator-is-a-unary-operator/</guid><description>The only logical operator in C++ that is unary is the logical NOT, !. Learn why &amp;&amp; and || need two operands, with a short example and a quick comparison.</description><category>Unary Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Shift Operators in C++</title><link>https://cppfromscratch.site/shift-operator-in-c/shift-operators-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/shift-operator-in-c/shift-operators-in-c/</guid><description>Learn how the &lt;&lt; and &gt;&gt; shift operators work in C++, with binary examples, compound forms, precedence traps, undefined cases, and safe ways to use them.</description><category>Shift Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does &gt;&gt;= Mean?</title><link>https://cppfromscratch.site/shift-operator-in-c/what-does-mean/</link><guid isPermaLink="true">https://cppfromscratch.site/shift-operator-in-c/what-does-mean/</guid><description>Learn what &gt;&gt;= means in C and C++: it right-shifts a variable&apos;s bits and stores the result back, the same as x = x &gt;&gt; n. See a worked example.</description><category>Shift Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does 1 &lt;&lt; 1 Do?</title><link>https://cppfromscratch.site/shift-operator-in-c/what-does-1-1-do/</link><guid isPermaLink="true">https://cppfromscratch.site/shift-operator-in-c/what-does-1-1-do/</guid><description>Learn what 1 &lt;&lt; 1 does in C: it shifts the bits of 1 one place left, giving 2. See the binary steps, a program, and the precedence trap in C and C++.</description><category>Shift Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is 1 &lt;&lt; n in C?</title><link>https://cppfromscratch.site/shift-operator-in-c/what-is-1-n-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/shift-operator-in-c/what-is-1-n-in-c/</guid><description>Learn what 1 &lt;&lt; n means in C: it shifts a single bit left n places, giving 2 to the power of n. See the valid range, bit masks, and when to use a wider type.</description><category>Shift Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Bitwise XOR in C++</title><link>https://cppfromscratch.site/bitwise-xor-c/bitwise-xor-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/bitwise-xor-c/bitwise-xor-in-c/</guid><description>Learn how the bitwise XOR operator (^) in C++ works, with a truth table, code examples, and common uses such as toggling bits and swapping values.</description><category>Bitwise Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Use Left Shift and Right Shift Operators in C</title><link>https://cppfromscratch.site/bitwise-xor-c/how-to-use-left-shift-and-right-shift/</link><guid isPermaLink="true">https://cppfromscratch.site/bitwise-xor-c/how-to-use-left-shift-and-right-shift/</guid><description>Learn how the left shift (&lt;&lt;) and right shift (&gt;&gt;) operators in C move bits, with examples, pitfalls to avoid, and common uses like building bit masks.</description><category>Bitwise Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is &amp; or &amp;&amp; Bitwise?</title><link>https://cppfromscratch.site/bitwise-xor-c/is-or-bitwise/</link><guid isPermaLink="true">https://cppfromscratch.site/bitwise-xor-c/is-or-bitwise/</guid><description>Only the single &amp; is bitwise. It compares integers bit by bit, while &amp;&amp; is logical AND and checks true or false. Examples in C++ show the difference.</description><category>Bitwise Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does the Bitwise NOT (~) Operator Do?</title><link>https://cppfromscratch.site/bitwise-xor-c/what-does-the-bitwise-not-operator-do/</link><guid isPermaLink="true">https://cppfromscratch.site/bitwise-xor-c/what-does-the-bitwise-not-operator-do/</guid><description>The bitwise NOT (~) operator flips every bit in a value. Learn what it does, how it treats signed and unsigned integers, and how to use it with examples.</description><category>Bitwise Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is There a Power Operator in C++?</title><link>https://cppfromscratch.site/c-power-operator/is-there-a-power-operator-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-power-operator/is-there-a-power-operator-in-c/</guid><description>C++ has no power operator. Use std::pow from the cmath header for exponents, a loop for whole-number results, and avoid ** and ^, which do not raise to powers.</description><category>Power Operator</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The OR Operator in C++</title><link>https://cppfromscratch.site/or-operator-c/the-or-operator-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/or-operator-c/the-or-operator-in-c/</guid><description>Learn the OR operator in C++: || and its word form or, how short-circuit evaluation works, precedence, the bitwise | operator, and common mistakes.</description><category>Logical and Arithmetic Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are Arithmetic Operators?</title><link>https://cppfromscratch.site/or-operator-c/what-are-arithmetic-operators/</link><guid isPermaLink="true">https://cppfromscratch.site/or-operator-c/what-are-arithmetic-operators/</guid><description>Arithmetic operators in C++ are +, -, *, / and %. Learn what each does, how integer division and remainder work, and see a working example program.</description><category>Logical and Arithmetic Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are Operators in C? With Examples</title><link>https://cppfromscratch.site/or-operator-c/what-are-operators-in-c-with-examples/</link><guid isPermaLink="true">https://cppfromscratch.site/or-operator-c/what-are-operators-in-c-with-examples/</guid><description>Operators are symbols such as +, ==, &amp;&amp; and ! that act on values. Here are the main groups of operators in C and C++, with a short example program.</description><category>Logical and Arithmetic Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The Dot Operator in C++</title><link>https://cppfromscratch.site/dot-operator-in-c/the-dot-operator-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/dot-operator-in-c/the-dot-operator-in-c/</guid><description>The dot operator (.) reads and sets the members of a C++ struct or class object and calls its member functions. Covers pointers, access rules and errors.</description><category>Dot and Scope Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are C# Operators?</title><link>https://cppfromscratch.site/dot-operator-in-c/what-are-c-operators/</link><guid isPermaLink="true">https://cppfromscratch.site/dot-operator-in-c/what-are-c-operators/</guid><description>An overview of C# operators: arithmetic, comparison, logical, bitwise and assignment symbols, plus ?? and ?. Notes show how they compare with C++ operators.</description><category>Dot and Scope Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does :: Mean in C++?</title><link>https://cppfromscratch.site/dot-operator-in-c/what-does-mean-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/dot-operator-in-c/what-does-mean-in-c/</guid><description>The :: operator is C++&apos;s scope resolution operator. It reaches names inside a namespace, a class or the global scope, as in std::cout and Counter::total.</description><category>Dot and Scope Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Dot Operator in Excel?</title><link>https://cppfromscratch.site/dot-operator-in-c/what-is-a-dot-operator-in-excel/</link><guid isPermaLink="true">https://cppfromscratch.site/dot-operator-in-c/what-is-a-dot-operator-in-excel/</guid><description>Excel formulas have no dot operator. The dot appears as a decimal point, in some names and in VBA, where it reaches an object&apos;s properties and methods.</description><category>Dot and Scope Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Which Operator Connects a Structure Variable to Its Members?</title><link>https://cppfromscratch.site/dot-operator-in-c/which-operator-connects-a-structure-variable-to-its/</link><guid isPermaLink="true">https://cppfromscratch.site/dot-operator-in-c/which-operator-connects-a-structure-variable-to-its/</guid><description>The dot operator (.) connects a structure variable to its members, and the arrow (-&gt;) does the same through a pointer. Examples in C and C++ show both.</description><category>Dot and Scope Operators</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>C++ While Loop Syntax</title><link>https://cppfromscratch.site/c-while-loop-syntax/c-while-loop-syntax/</link><guid isPermaLink="true">https://cppfromscratch.site/c-while-loop-syntax/c-while-loop-syntax/</guid><description>Learn the C++ while loop syntax, how the condition is checked, and how to avoid infinite loops, with step-by-step examples you can compile and run.</description><category>While Loops</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Use a While Loop: An Example</title><link>https://cppfromscratch.site/c-while-loop-syntax/how-to-use-a-while-loop-an-example/</link><guid isPermaLink="true">https://cppfromscratch.site/c-while-loop-syntax/how-to-use-a-while-loop-an-example/</guid><description>Walk through a C++ while loop example that counts the digits of a number, pass by pass, with a trace table and a complete program you can compile.</description><category>While Loops</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the Three Types of Loops?</title><link>https://cppfromscratch.site/c-while-loop-syntax/what-are-the-three-types-of-loops/</link><guid isPermaLink="true">https://cppfromscratch.site/c-while-loop-syntax/what-are-the-three-types-of-loops/</guid><description>C++ has three main loop types: for, while and do-while. Learn how each one checks its condition, when it runs, and which to choose for a task.</description><category>While Loops</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>C++ Do While Loop Example Program</title><link>https://cppfromscratch.site/do-while-loop-in-c-example-program/c-do-while-loop-example-program/</link><guid isPermaLink="true">https://cppfromscratch.site/do-while-loop-in-c-example-program/c-do-while-loop-example-program/</guid><description>A do-while loop in C++ runs its body first and checks the condition after. See the syntax, example programs with output, and common mistakes to avoid.</description><category>Do While Loops</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Iteration in C: For, While and Do-While Loops</title><link>https://cppfromscratch.site/do-while-loop-in-c-example-program/iteration-in-c-for-while-and-do-while/</link><guid isPermaLink="true">https://cppfromscratch.site/do-while-loop-in-c-example-program/iteration-in-c-for-while-and-do-while/</guid><description>Iteration in C means repeating code. The for, while and do-while loops are all iteration statements. Learn each one&apos;s syntax with a shared example.</description><category>Do While Loops</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The Break Statement in C++</title><link>https://cppfromscratch.site/break-statement-in-c/the-break-statement-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/break-statement-in-c/the-break-statement-in-c/</guid><description>Learn what the break statement does in C++, how it ends a for, while, do-while or switch early, and how it behaves in nested loops, with examples.</description><category>Break Statement</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Switch Case Statements in C++</title><link>https://cppfromscratch.site/switch-case-statement-in-c/switch-case-statements-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/switch-case-statement-in-c/switch-case-statements-in-c/</guid><description>A guide to switch case statements in C++: syntax, break and fall-through, the default label, what you can switch on and when if else works better.</description><category>Switch Case</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are Switch Cases Used For?</title><link>https://cppfromscratch.site/switch-case-statement-in-c/what-are-switch-cases-used-for/</link><guid isPermaLink="true">https://cppfromscratch.site/switch-case-statement-in-c/what-are-switch-cases-used-for/</guid><description>Switch cases pick one block of code by matching an exact value, such as a menu choice or an enum. See a C++ menu example and when an if else chain is better.</description><category>Switch Case</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>If Else Statement Syntax in C++</title><link>https://cppfromscratch.site/if-else-statement-syntax-in-c/if-else-statement-syntax-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/if-else-statement-syntax-in-c/if-else-statement-syntax-in-c/</guid><description>Learn the if else statement syntax in C++, including how conditions are evaluated, how both branches are written, and common mistakes to avoid.</description><category>If Else Statements</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How Do I Use the Else If Ladder in C?</title><link>https://cppfromscratch.site/if-else-statement-syntax-in-c/how-do-i-use-the-else-if-ladder/</link><guid isPermaLink="true">https://cppfromscratch.site/if-else-statement-syntax-in-c/how-do-i-use-the-else-if-ladder/</guid><description>An else if ladder checks conditions from top to bottom and runs the first true block. Learn the order rules, a C-compatible example, and common mistakes.</description><category>If Else Statements</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Syntax of the If Statement?</title><link>https://cppfromscratch.site/if-else-statement-syntax-in-c/what-is-the-syntax-of-the-if-statement/</link><guid isPermaLink="true">https://cppfromscratch.site/if-else-statement-syntax-in-c/what-is-the-syntax-of-the-if-statement/</guid><description>The if statement runs its body only when the condition is true. Learn the parts, the braces rule, the empty-body trap, and the C++17 init form.</description><category>If Else Statements</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Use goto in C++</title><link>https://cppfromscratch.site/how-to-use-goto-in-c/how-to-use-goto-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-use-goto-in-c/how-to-use-goto-in-c/</guid><description>Learn how to use goto in C++: write a label and jump to it, see forward and backward examples, avoid compile errors, and pick safer alternatives.</description><category>goto</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Use the goto Jump Statement in C</title><link>https://cppfromscratch.site/how-to-use-goto-in-c/how-to-use-the-goto-jump-statement-in/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-use-goto-in-c/how-to-use-the-goto-jump-statement-in/</guid><description>In C, goto jumps to a label in the same function. Here is the C syntax, the rules that differ from C++, and the cleanup-on-error pattern C code uses.</description><category>goto</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is goto?</title><link>https://cppfromscratch.site/how-to-use-goto-in-c/what-is-goto/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-use-goto-in-c/what-is-goto/</guid><description>goto is a jump statement in C and C++. This article explains how it moves the program to a labeled line in the same function and why most code avoids it.</description><category>goto</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the goto Command?</title><link>https://cppfromscratch.site/how-to-use-goto-in-c/what-is-the-goto-command/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-use-goto-in-c/what-is-the-goto-command/</guid><description>The goto command is a jump statement in C and C++ that needs a label to jump to. Here is how the two parts fit, with a full example and common mistakes.</description><category>goto</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Recursive Functions in C++</title><link>https://cppfromscratch.site/recursive-function-in-c/recursive-functions-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/recursive-function-in-c/recursive-functions-in-c/</guid><description>A recursive function calls itself to solve smaller parts of a problem. Learn the base case, the recursive case, examples in C++ and when to use recursion.</description><category>Recursion</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Base Case in Recursion?</title><link>https://cppfromscratch.site/recursive-function-in-c/what-is-a-base-case-in-recursion/</link><guid isPermaLink="true">https://cppfromscratch.site/recursive-function-in-c/what-is-a-base-case-in-recursion/</guid><description>A base case is the condition where a recursive function stops calling itself and returns a value. Learn how to write one and avoid infinite recursion.</description><category>Recursion</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Recursive Function in Python? With an Example</title><link>https://cppfromscratch.site/recursive-function-in-c/what-is-a-recursive-function-in-python-with/</link><guid isPermaLink="true">https://cppfromscratch.site/recursive-function-in-c/what-is-a-recursive-function-in-python-with/</guid><description>A recursive function in Python calls itself with a smaller input until a base case stops it. See a working example, the recursion limit and a C++ comparison.</description><category>Recursion</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is Recursion in C Programming? With an Example</title><link>https://cppfromscratch.site/recursive-function-in-c/what-is-recursion-in-c-programming-with-an/</link><guid isPermaLink="true">https://cppfromscratch.site/recursive-function-in-c/what-is-recursion-in-c-programming-with-an/</guid><description>Recursion is when a function calls itself. This guide shows a C example that computes factorials, traces each call and explains why a base case is needed.</description><category>Recursion</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Difference Between Recursion and Recursive?</title><link>https://cppfromscratch.site/recursive-function-in-c/what-is-the-difference-between-recursion-and-recursive/</link><guid isPermaLink="true">https://cppfromscratch.site/recursive-function-in-c/what-is-the-difference-between-recursion-and-recursive/</guid><description>Recursion is the technique, and recursive describes something that uses it, such as a recursive function. Here is how to use each word in C++.</description><category>Recursion</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Does C++ Have Function Overloading?</title><link>https://cppfromscratch.site/does-c-have-function-overloading/does-c-have-function-overloading/</link><guid isPermaLink="true">https://cppfromscratch.site/does-c-have-function-overloading/does-c-have-function-overloading/</guid><description>Yes, C++ has function overloading, which lets several functions share one name when their parameters differ. C does not. Here is how it works, with examples.</description><category>Function Overloading</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Function Overloading vs. Operator Overloading in C++</title><link>https://cppfromscratch.site/does-c-have-function-overloading/function-overloading-vs-operator-overloading-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/does-c-have-function-overloading/function-overloading-vs-operator-overloading-in-c/</guid><description>Function overloading and operator overloading both reuse names in C++, but they solve different problems. Compare their rules, syntax and uses with examples.</description><category>Function Overloading</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is Function Overloading?</title><link>https://cppfromscratch.site/does-c-have-function-overloading/what-is-function-overloading/</link><guid isPermaLink="true">https://cppfromscratch.site/does-c-have-function-overloading/what-is-function-overloading/</guid><description>Function overloading lets C++ functions share a name when their parameter lists differ. Learn the rules, how the compiler picks a version, and common errors.</description><category>Function Overloading</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is Function Overriding? Explained With an Example</title><link>https://cppfromscratch.site/does-c-have-function-overloading/what-is-function-overriding-explained-with-an-example/</link><guid isPermaLink="true">https://cppfromscratch.site/does-c-have-function-overloading/what-is-function-overriding-explained-with-an-example/</guid><description>Function overriding lets a derived class replace a virtual function from its base class. Learn how it differs from overloading, with a short C++ example.</description><category>Function Overloading</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is Overloading and What Are Its Types?</title><link>https://cppfromscratch.site/does-c-have-function-overloading/what-is-overloading-and-what-are-its-types/</link><guid isPermaLink="true">https://cppfromscratch.site/does-c-have-function-overloading/what-is-overloading-and-what-are-its-types/</guid><description>Overloading means giving one name to several operations that differ in their inputs. Here are the main types of overloading in C++ and how they differ.</description><category>Function Overloading</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Function Prototype in C++?</title><link>https://cppfromscratch.site/what-is-a-prototype-in-c/what-is-a-function-prototype-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/what-is-a-prototype-in-c/what-is-a-function-prototype-in-c/</guid><description>A function prototype tells the C++ compiler a function&apos;s name, return type and parameters before it is defined. Covers syntax, examples and common mistakes.</description><category>Function Prototypes</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Function Definition?</title><link>https://cppfromscratch.site/what-is-a-prototype-in-c/what-is-a-function-definition/</link><guid isPermaLink="true">https://cppfromscratch.site/what-is-a-prototype-in-c/what-is-a-function-definition/</guid><description>A function definition gives a C++ function its full code: return type, name, parameters and the body in braces. Learn the parts with a short example.</description><category>Function Prototypes</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Function Prototype? An Example</title><link>https://cppfromscratch.site/what-is-a-prototype-in-c/what-is-a-function-prototype-an-example/</link><guid isPermaLink="true">https://cppfromscratch.site/what-is-a-prototype-in-c/what-is-a-function-prototype-an-example/</guid><description>See a function prototype example in C++: a working program that declares a function above main and defines it below. Includes common compile errors.</description><category>Function Prototypes</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is Meant by a Function Prototype?</title><link>https://cppfromscratch.site/what-is-a-prototype-in-c/what-is-meant-by-a-function-prototype/</link><guid isPermaLink="true">https://cppfromscratch.site/what-is-a-prototype-in-c/what-is-meant-by-a-function-prototype/</guid><description>In C++, a function prototype is a declaration of a function&apos;s name and types with no body. Learn what the term means and how the compiler uses it.</description><category>Function Prototypes</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Static Functions in C++</title><link>https://cppfromscratch.site/static-functions-in-c/static-functions-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/static-functions-in-c/static-functions-in-c/</guid><description>Learn how the static keyword works with functions in C++: file-only helpers and static member functions, with short examples you can compile and run.</description><category>Static Functions</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Function Declaration vs. Definition: What&apos;s the Difference?</title><link>https://cppfromscratch.site/static-functions-in-c/function-declaration-vs-definition-what-s-the-difference/</link><guid isPermaLink="true">https://cppfromscratch.site/static-functions-in-c/function-declaration-vs-definition-what-s-the-difference/</guid><description>A declaration tells the compiler a function&apos;s name and signature, while a definition adds the body. See how static changes linkage, with C++ examples.</description><category>Static Functions</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What&apos;s the Difference Between Static and Non-Static Variables?</title><link>https://cppfromscratch.site/static-functions-in-c/what-s-the-difference-between-static-and-non/</link><guid isPermaLink="true">https://cppfromscratch.site/static-functions-in-c/what-s-the-difference-between-static-and-non/</guid><description>Static variables keep their value for the whole program, while ordinary local variables are recreated on each call. See examples of both in C++.</description><category>Static Functions</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>When Should You Use static?</title><link>https://cppfromscratch.site/static-functions-in-c/when-should-you-use-static/</link><guid isPermaLink="true">https://cppfromscratch.site/static-functions-in-c/when-should-you-use-static/</guid><description>Use static for file-only helpers, values that persist between calls, and shared class data. Learn when to use it in C++ and when another choice fits better.</description><category>Static Functions</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Why Is the static Keyword Used?</title><link>https://cppfromscratch.site/static-functions-in-c/why-is-the-static-keyword-used/</link><guid isPermaLink="true">https://cppfromscratch.site/static-functions-in-c/why-is-the-static-keyword-used/</guid><description>The static keyword limits a name to its file, keeps values between calls, and attaches data to a class. Here is why C++ uses it and what each use does.</description><category>Static Functions</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The inline Keyword in C++</title><link>https://cppfromscratch.site/c-inline-keyword/the-inline-keyword-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-inline-keyword/the-inline-keyword-in-c/</guid><description>Learn how the inline keyword in C++ works, why inline functions belong in header files, how inline variables work in C++17, and when the compiler ignores it.</description><category>inline</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is __LINE__ in C?</title><link>https://cppfromscratch.site/c-inline-keyword/what-is-line-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-inline-keyword/what-is-line-in-c/</guid><description>__LINE__ is a predefined macro that expands to the current source line number in C and C++. Examples show printing it, logging with __FILE__, and #line.</description><category>inline</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Difference Between Inline Functions and Macros?</title><link>https://cppfromscratch.site/c-inline-keyword/what-is-the-difference-between-inline-functions-and/</link><guid isPermaLink="true">https://cppfromscratch.site/c-inline-keyword/what-is-the-difference-between-inline-functions-and/</guid><description>A macro is text the preprocessor substitutes before compiling, while an inline function is a real function the compiler type-checks. Learn the differences.</description><category>inline</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Which Are the 32 Keywords in C? Full List</title><link>https://cppfromscratch.site/c-inline-keyword/which-are-the-32-keywords-in-c-full/</link><guid isPermaLink="true">https://cppfromscratch.site/c-inline-keyword/which-are-the-32-keywords-in-c-full/</guid><description>The original C standard defines 32 keywords. See the full list grouped by purpose, plus the words later C versions added, such as inline and restrict.</description><category>inline</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The const Keyword in C++</title><link>https://cppfromscratch.site/c-const-keyword/the-const-keyword-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-const-keyword/the-const-keyword-in-c/</guid><description>Learn what the const keyword does in C++, how it applies to variables, pointers, references and member functions, and how the compiler enforces it.</description><category>const</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Should I Use const or let?</title><link>https://cppfromscratch.site/c-const-keyword/should-i-use-const-or-let/</link><guid isPermaLink="true">https://cppfromscratch.site/c-const-keyword/should-i-use-const-or-let/</guid><description>Default to const for values you won&apos;t reassign and use let when a value must change. Here is how to choose, and why most modern code avoids var.</description><category>const</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the 32 Keywords in C?</title><link>https://cppfromscratch.site/c-const-keyword/what-are-the-32-keywords-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-const-keyword/what-are-the-32-keywords-in-c/</guid><description>C has 32 reserved keywords in the original C89 standard, such as int, if and return. Here is the full list, grouped by purpose, plus later additions.</description><category>const</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is const vs. var in JavaScript?</title><link>https://cppfromscratch.site/c-const-keyword/what-is-const-vs-var-in-javascript/</link><guid isPermaLink="true">https://cppfromscratch.site/c-const-keyword/what-is-const-vs-var-in-javascript/</guid><description>const and var both declare variables in JavaScript, but they differ in scope, hoisting and reassignment. Here is how each works and when to pick one.</description><category>const</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Use of const?</title><link>https://cppfromscratch.site/c-const-keyword/what-is-the-use-of-const/</link><guid isPermaLink="true">https://cppfromscratch.site/c-const-keyword/what-is-the-use-of-const/</guid><description>In C++, const marks a value as read-only so the compiler catches accidental changes. Examples cover variables, function parameters and member functions.</description><category>const</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Using Namespace std in C++ Explained</title><link>https://cppfromscratch.site/c-using-namespace-std/using-namespace-std-in-c-explained/</link><guid isPermaLink="true">https://cppfromscratch.site/c-using-namespace-std/using-namespace-std-in-c-explained/</guid><description>Learn what using namespace std does in C++, why many developers avoid it in real code, and safer options like std:: and narrow using declarations.</description><category>using namespace std</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does std Mean in C++?</title><link>https://cppfromscratch.site/c-using-namespace-std/what-does-std-mean-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-using-namespace-std/what-does-std-mean-in-c/</guid><description>std is short for standard. It is the namespace that holds the C++ standard library, including cout, string and vector. Here is what that means.</description><category>using namespace std</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does using namespace std Do?</title><link>https://cppfromscratch.site/c-using-namespace-std/what-does-using-namespace-std-do/</link><guid isPermaLink="true">https://cppfromscratch.site/c-using-namespace-std/what-does-using-namespace-std-do/</guid><description>Find out what using namespace std does in C++, how it lets you skip the std:: prefix, what it does not change, and when it is safe to use in real code.</description><category>using namespace std</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Namespace? An Example in C++</title><link>https://cppfromscratch.site/c-using-namespace-std/what-is-a-namespace-an-example-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-using-namespace-std/what-is-a-namespace-an-example-in-c/</guid><description>A namespace is a named scope that keeps names from clashing. This page walks through a short C++ example with two namespaces that share a name.</description><category>using namespace std</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>When to Use std:: in C++</title><link>https://cppfromscratch.site/c-using-namespace-std/when-to-use-std-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-using-namespace-std/when-to-use-std-in-c/</guid><description>Use std:: by default. Learn when a using declaration for one name is enough, when a directive is fine, and why headers should avoid it entirely.</description><category>using namespace std</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The using Keyword in C++</title><link>https://cppfromscratch.site/c-using-keyword/the-using-keyword-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-using-keyword/the-using-keyword-in-c/</guid><description>The using keyword in C++ brings names into scope, creates type aliases and exposes base class members. Here is each form with short examples.</description><category>using</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does ? Do in C++? The Ternary Operator</title><link>https://cppfromscratch.site/c-using-keyword/what-does-do-in-c-the-ternary-operator/</link><guid isPermaLink="true">https://cppfromscratch.site/c-using-keyword/what-does-do-in-c-the-ternary-operator/</guid><description>The ? in C++ is the ternary operator. It picks one of two values based on a condition, replacing a simple if-else in one line of code, with examples.</description><category>using</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Use cout in C++</title><link>https://cppfromscratch.site/c-cout/how-to-use-cout-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-cout/how-to-use-cout-in-c/</guid><description>Learn how to use cout in C++ to print text, numbers and variables, add new lines, and format output, with short complete examples you can compile and run.</description><category>cout</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is It Better to Use C or C++?</title><link>https://cppfromscratch.site/c-cout/is-it-better-to-use-c-or-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-cout/is-it-better-to-use-c-or-c/</guid><description>Neither C nor C++ is better for everyone. Learn how the two languages relate, how output differs between them, and how to choose for your goals.</description><category>cout</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is cout in C++?</title><link>https://cppfromscratch.site/c-cout/what-is-cout-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-cout/what-is-cout-in-c/</guid><description>cout is the standard output stream in C++. Learn what it is, where it lives in the std namespace, how it differs from cerr, and what buffering means.</description><category>cout</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is std::cout &lt;&lt; in C++?</title><link>https://cppfromscratch.site/c-cout/what-is-std-cout-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-cout/what-is-std-cout-in-c/</guid><description>Break down std::cout &lt;&lt; in C++ piece by piece: the std namespace, the cout object, the insertion operator, and why several values can be chained in one line.</description><category>cout</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>C++ Lambda Functions With Examples</title><link>https://cppfromscratch.site/c-lambda-function/c-lambda-functions-with-examples/</link><guid isPermaLink="true">https://cppfromscratch.site/c-lambda-function/c-lambda-functions-with-examples/</guid><description>How to write C++ lambda functions, capture variables from the surrounding code and use lambdas with the standard library, with short examples.</description><category>Lambda Functions</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does λ (Lambda) Mean in Math?</title><link>https://cppfromscratch.site/c-lambda-function/what-does-lambda-mean-in-math/</link><guid isPermaLink="true">https://cppfromscratch.site/c-lambda-function/what-does-lambda-mean-in-math/</guid><description>In math, λ is a Greek letter used for many things, and in lambda calculus it marks an anonymous function, which is where the programming term comes from.</description><category>Lambda Functions</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the =&gt; Operator Used for in C#?</title><link>https://cppfromscratch.site/c-lambda-function/what-is-the-operator-used-for-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-lambda-function/what-is-the-operator-used-for-in-c/</guid><description>What the =&gt; arrow means in C#: the lambda arrow in expressions like x =&gt; x * 2, expression-bodied members and switch expressions, compared with C++.</description><category>Lambda Functions</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Type of a Lambda in C++?</title><link>https://cppfromscratch.site/c-lambda-function/what-is-the-type-of-a-lambda-in/</link><guid isPermaLink="true">https://cppfromscratch.site/c-lambda-function/what-is-the-type-of-a-lambda-in/</guid><description>Every C++ lambda has its own unnamed type, so you usually store one with auto or std::function. Here is what that means, with a short example.</description><category>Lambda Functions</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What&apos;s the Point of Lambda Functions?</title><link>https://cppfromscratch.site/c-lambda-function/what-s-the-point-of-lambda-functions/</link><guid isPermaLink="true">https://cppfromscratch.site/c-lambda-function/what-s-the-point-of-lambda-functions/</guid><description>Why lambda functions are useful: they let you write a small piece of code where you use it, pass it to algorithms and capture local values, with examples.</description><category>Lambda Functions</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>std::function in C++</title><link>https://cppfromscratch.site/c-std-function/std-function-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-std-function/std-function-in-c/</guid><description>std::function is a C++ wrapper that holds any callable with a matching signature, such as a function, lambda or functor, and calls it the same way.</description><category>std::function</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Use count() in C++</title><link>https://cppfromscratch.site/c-std-function/how-to-use-count-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-std-function/how-to-use-count-in-c/</guid><description>Learn how to use count() in C++ through std::count, which tallies matching values in a vector, string or array, and count_if for counting by a rule.</description><category>std::function</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the Four Types of Functions in C?</title><link>https://cppfromscratch.site/c-std-function/what-are-the-four-types-of-functions-in/</link><guid isPermaLink="true">https://cppfromscratch.site/c-std-function/what-are-the-four-types-of-functions-in/</guid><description>The four common types of functions in C differ by whether they take arguments and whether they return a value. Each type comes with a short example.</description><category>std::function</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Pass a Function as an Argument in C++</title><link>https://cppfromscratch.site/c-pass-function-as-argument/how-to-pass-a-function-as-an-argument/</link><guid isPermaLink="true">https://cppfromscratch.site/c-pass-function-as-argument/how-to-pass-a-function-as-an-argument/</guid><description>Learn three ways to pass a function as an argument in C++: function pointers, templates and std::function, with lambda examples you can compile and run.</description><category>Functions as Arguments</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Can You Pass a Function as a Parameter?</title><link>https://cppfromscratch.site/c-pass-function-as-argument/can-you-pass-a-function-as-a-parameter/</link><guid isPermaLink="true">https://cppfromscratch.site/c-pass-function-as-argument/can-you-pass-a-function-as-a-parameter/</guid><description>Yes, you can pass a function as a parameter. Learn how function pointer parameters work in C and C++, with a runnable example in each language.</description><category>Functions as Arguments</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Which Symbol Declares a Pointer in C?</title><link>https://cppfromscratch.site/c-pass-function-as-argument/which-symbol-declares-a-pointer-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-pass-function-as-argument/which-symbol-declares-a-pointer-in-c/</guid><description>The asterisk declares a pointer in C. Learn what the ampersand and arrow do instead, with short examples, including how function pointers are declared.</description><category>Functions as Arguments</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Arrays of Function Pointers in C++</title><link>https://cppfromscratch.site/c-array-of-function-pointers/arrays-of-function-pointers-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-array-of-function-pointers/arrays-of-function-pointers-in-c/</guid><description>Learn how to declare, initialize, and call an array of function pointers in C++, with a full working example, a type alias, and a std::array version.</description><category>Function Pointer Arrays</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is an Array in C? Explained With an Example</title><link>https://cppfromscratch.site/c-array-of-function-pointers/what-is-an-array-in-c-explained-with/</link><guid isPermaLink="true">https://cppfromscratch.site/c-array-of-function-pointers/what-is-an-array-in-c-explained-with/</guid><description>Learn what an array in C is, how to declare one, how zero-based indexing works, and how to loop over the elements, with a short complete example.</description><category>Function Pointer Arrays</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Definition of an Array?</title><link>https://cppfromscratch.site/c-array-of-function-pointers/what-is-the-definition-of-an-array/</link><guid isPermaLink="true">https://cppfromscratch.site/c-array-of-function-pointers/what-is-the-definition-of-an-array/</guid><description>An array is an ordered list of same-type elements stored side by side and accessed by index. Here is the definition, the key terms, and how it applies in C++.</description><category>Function Pointer Arrays</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Header Guards in C++</title><link>https://cppfromscratch.site/header-guard-in-c/header-guards-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/header-guard-in-c/header-guards-in-c/</guid><description>A header guard stops a header from being included twice in one source file. Learn how #ifndef and #pragma once work, with examples and common mistakes.</description><category>Header Guards</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C++ Very Difficult?</title><link>https://cppfromscratch.site/header-guard-in-c/is-c-very-difficult/</link><guid isPermaLink="true">https://cppfromscratch.site/header-guard-in-c/is-c-very-difficult/</guid><description>C++ has many features and a steep learning curve, but its basics are learnable with steady practice. Here is what makes it hard and how to start.</description><category>Header Guards</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Header File for C++?</title><link>https://cppfromscratch.site/header-guard-in-c/what-is-the-header-file-for-c/</link><guid isPermaLink="true">https://cppfromscratch.site/header-guard-in-c/what-is-the-header-file-for-c/</guid><description>A header file in C++ holds declarations that several source files share through #include. Learn what goes in a .h or .hpp file, with a simple example.</description><category>Header Guards</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>C++ Header File Example</title><link>https://cppfromscratch.site/c-header-file-example/c-header-file-example/</link><guid isPermaLink="true">https://cppfromscratch.site/c-header-file-example/c-header-file-example/</guid><description>A complete C++ header file example: a .h file with declarations, a .cpp file with definitions, a main program, and how to compile and run them.</description><category>Header Files</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a .h File?</title><link>https://cppfromscratch.site/c-header-file-example/what-is-a-h-file/</link><guid isPermaLink="true">https://cppfromscratch.site/c-header-file-example/what-is-a-h-file/</guid><description>A .h file is a header file that holds declarations, macros and types shared across source files. Learn what goes in one and how #include uses it.</description><category>Header Files</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a File Header?</title><link>https://cppfromscratch.site/c-header-file-example/what-is-a-file-header/</link><guid isPermaLink="true">https://cppfromscratch.site/c-header-file-example/what-is-a-file-header/</guid><description>A file header is either a comment block at the top of a source file or the metadata at the start of a binary file. Learn how it differs from a .h header.</description><category>Header Files</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Main Purpose of a Header File?</title><link>https://cppfromscratch.site/c-header-file-example/what-is-the-main-purpose-of-a-header/</link><guid isPermaLink="true">https://cppfromscratch.site/c-header-file-example/what-is-the-main-purpose-of-a-header/</guid><description>A header file&apos;s main purpose is to share declarations across source files so each one compiles on its own. Learn why headers matter and how they are used.</description><category>Header Files</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is write() in C?</title><link>https://cppfromscratch.site/c-header-file-example/what-is-write-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-header-file-example/what-is-write-in-c/</guid><description>write() is a POSIX system call that sends bytes from a buffer to a file descriptor. Learn its declaration, return value and a short C example.</description><category>Header Files</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What the Preprocessor Does in C++</title><link>https://cppfromscratch.site/what-does-the-preprocessor-do-in-c/what-the-preprocessor-does-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/what-does-the-preprocessor-do-in-c/what-the-preprocessor-does-in-c/</guid><description>The C++ preprocessor runs before compilation. It includes header files, expands macros and chooses which code gets compiled, using lines that start with #.</description><category>The Preprocessor</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Function in C?</title><link>https://cppfromscratch.site/what-does-the-preprocessor-do-in-c/what-is-a-function-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/what-does-the-preprocessor-do-in-c/what-is-a-function-in-c/</guid><description>A function is a named block of code that takes inputs, does a job and can return a result. Here&apos;s a plain explanation with a short C++ example.</description><category>The Preprocessor</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Which Is the Preprocessor in C?</title><link>https://cppfromscratch.site/what-does-the-preprocessor-do-in-c/which-is-the-preprocessor-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/what-does-the-preprocessor-do-in-c/which-is-the-preprocessor-in-c/</guid><description>The preprocessor is the built-in first step of compiling C, not a language you choose. It handles #include and #define before the compiler reads your code.</description><category>The Preprocessor</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Stringify a Macro in C++</title><link>https://cppfromscratch.site/c-macro-stringify/how-to-stringify-a-macro-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-macro-stringify/how-to-stringify-a-macro-in-c/</guid><description>Learn how the # operator turns a C++ macro argument into a string literal, with examples, the two-level trick for expanded macros and common pitfalls.</description><category>Macros</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are Macros in C Code?</title><link>https://cppfromscratch.site/c-macro-stringify/what-are-macros-in-c-code/</link><guid isPermaLink="true">https://cppfromscratch.site/c-macro-stringify/what-are-macros-in-c-code/</guid><description>A macro is a name the preprocessor replaces with text before compiling. Learn how #define works in C and C++, with object-like and function-like examples.</description><category>Macros</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Macro Processor?</title><link>https://cppfromscratch.site/c-macro-stringify/what-is-a-macro-processor/</link><guid isPermaLink="true">https://cppfromscratch.site/c-macro-stringify/what-is-a-macro-processor/</guid><description>A macro processor replaces macro names with their text before compilation. In C and C++, the preprocessor does this job, and you can see its output.</description><category>Macros</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Why Not Use Macros in C++?</title><link>https://cppfromscratch.site/c-macro-stringify/why-not-use-macros-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-macro-stringify/why-not-use-macros-in-c/</guid><description>Macros do plain text replacement, with no type checks, scope or namespaces. Learn the common pitfalls and the modern C++ alternatives, with short examples.</description><category>Macros</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Struct vs Class in C++</title><link>https://cppfromscratch.site/c-struct-vs-class/struct-vs-class-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-struct-vs-class/struct-vs-class-in-c/</guid><description>In C++, struct and class differ mainly in default access: struct members are public, class members are private. See when to use each, with examples.</description><category>Struct vs Class</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Are Struct Members Private or Public by Default?</title><link>https://cppfromscratch.site/c-struct-vs-class/are-struct-members-private-or-public-by-default/</link><guid isPermaLink="true">https://cppfromscratch.site/c-struct-vs-class/are-struct-members-private-or-public-by-default/</guid><description>In C++, struct members are public by default, while class members are private. Here is how the default works, how to change it, and how C structs differ.</description><category>Struct vs Class</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Can You Use Structs in C?</title><link>https://cppfromscratch.site/c-struct-vs-class/can-you-use-structs-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-struct-vs-class/can-you-use-structs-in-c/</guid><description>Yes. C has structs that group named fields into one type. This guide shows how to define, initialize and pass a struct in C, with a working example.</description><category>Struct vs Class</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C++ Basically C With Classes?</title><link>https://cppfromscratch.site/c-struct-vs-class/is-c-basically-c-with-classes/</link><guid isPermaLink="true">https://cppfromscratch.site/c-struct-vs-class/is-c-basically-c-with-classes/</guid><description>Is C++ basically C with classes? Not quite. It began that way, but it has grown into a separate language with templates and its own standard library.</description><category>Struct vs Class</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are Classes in C++? A Beginner&apos;s Guide</title><link>https://cppfromscratch.site/c-struct-vs-class/what-are-classes-in-c-a-beginner-s/</link><guid isPermaLink="true">https://cppfromscratch.site/c-struct-vs-class/what-are-classes-in-c-a-beginner-s/</guid><description>A class in C++ bundles data and functions into one user-defined type. This beginner&apos;s guide explains objects, members and access labels, with an example.</description><category>Struct vs Class</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Struct Constructors in C++</title><link>https://cppfromscratch.site/c-struct-constructor/struct-constructors-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-struct-constructor/struct-constructors-in-c/</guid><description>Learn how C++ struct constructors set up members, with examples of default, parameterized and copy constructors, initializer lists and common mistakes.</description><category>Struct Constructors</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How Do I Create a Struct in C?</title><link>https://cppfromscratch.site/c-struct-constructor/how-do-i-create-a-struct-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-struct-constructor/how-do-i-create-a-struct-in-c/</guid><description>Learn how to create and initialize a struct in C, covering the definition, initializer lists, designated initializers, typedef and the C++ difference.</description><category>Struct Constructors</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Should You Use struct in C++?</title><link>https://cppfromscratch.site/c-struct-constructor/should-you-use-struct-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-struct-constructor/should-you-use-struct-in-c/</guid><description>A struct and a class in C++ differ mainly in default access. Here is when a struct fits, when a class is better and how constructors fit into the choice.</description><category>Struct Constructors</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Which Python Method Is the Constructor: __init__, __new__ or Others?</title><link>https://cppfromscratch.site/c-struct-constructor/which-python-method-is-the-constructor-init-new/</link><guid isPermaLink="true">https://cppfromscratch.site/c-struct-constructor/which-python-method-is-the-constructor-init-new/</guid><description>Python creates an object in two steps: __new__ makes it and __init__ sets it up. Here is how each step works, with C++ comparisons for readers new to Python.</description><category>Struct Constructors</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Class Constructors in C++</title><link>https://cppfromscratch.site/c-class-constructor/class-constructors-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-class-constructor/class-constructors-in-c/</guid><description>Learn C++ class constructors with compilable examples: default and parameterized forms, member initializer lists, explicit, and initialization order.</description><category>Constructors</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is __init__ a Constructor in Python?</title><link>https://cppfromscratch.site/c-class-constructor/is-init-a-constructor-in-python/</link><guid isPermaLink="true">https://cppfromscratch.site/c-class-constructor/is-init-a-constructor-in-python/</guid><description>Is __init__ a constructor in Python? Yes in everyday use. Python creates objects in two steps, and __init__ is the setup step. Compare it with C++.</description><category>Constructors</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are Constructors in Computer Science?</title><link>https://cppfromscratch.site/c-class-constructor/what-are-constructors-in-computer-science/</link><guid isPermaLink="true">https://cppfromscratch.site/c-class-constructor/what-are-constructors-in-computer-science/</guid><description>In computer science, a constructor is the routine that runs when an object is created and sets its starting state. Compare C++, Java, C# and Python.</description><category>Constructors</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Why Is a Constructor Needed in a Class?</title><link>https://cppfromscratch.site/c-class-constructor/why-is-a-constructor-needed-in-a-class/</link><guid isPermaLink="true">https://cppfromscratch.site/c-class-constructor/why-is-a-constructor-needed-in-a-class/</guid><description>A constructor makes sure an object starts in a valid state every time it is created. Here is why classes need one, with a bank account example in C++.</description><category>Constructors</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Inheritance in C++</title><link>https://cppfromscratch.site/inheritance-in-c/inheritance-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/inheritance-in-c/inheritance-in-c/</guid><description>A practical guide to inheritance in C++: the syntax, access specifiers, constructor order, virtual functions and common mistakes, with short code examples.</description><category>Inheritance</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C++ the Hardest Programming Language?</title><link>https://cppfromscratch.site/inheritance-in-c/is-c-the-hardest-programming-language/</link><guid isPermaLink="true">https://cppfromscratch.site/inheritance-in-c/is-c-the-hardest-programming-language/</guid><description>Is C++ the hardest programming language? No single ranking settles it, but C++ is often called hard for reasons you can learn one step at a time.</description><category>Inheritance</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Simple Definition of Inheritance in Programming?</title><link>https://cppfromscratch.site/inheritance-in-c/what-is-a-simple-definition-of-inheritance-in/</link><guid isPermaLink="true">https://cppfromscratch.site/inheritance-in-c/what-is-a-simple-definition-of-inheritance-in/</guid><description>A simple definition of inheritance in programming: a new class takes on the properties and behaviors of an existing class and can add features of its own.</description><category>Inheritance</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is Inheritance in C++? Explained in Simple Words</title><link>https://cppfromscratch.site/inheritance-in-c/what-is-inheritance-in-c-explained-in-simple/</link><guid isPermaLink="true">https://cppfromscratch.site/inheritance-in-c/what-is-inheritance-in-c-explained-in-simple/</guid><description>Inheritance in C++ explained in simple words: a derived class reuses the members of a base class, shown with a small Vehicle and Car code example you can run.</description><category>Inheritance</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Why Do We Use :: in C++? The Scope Resolution Operator</title><link>https://cppfromscratch.site/inheritance-in-c/why-do-we-use-in-c-the-scope/</link><guid isPermaLink="true">https://cppfromscratch.site/inheritance-in-c/why-do-we-use-in-c-the-scope/</guid><description>Why do we use :: in C++? The scope resolution operator says which scope a name belongs to, with code examples including std::cout and base class calls.</description><category>Inheritance</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Polymorphism in C++</title><link>https://cppfromscratch.site/polymorphism-in-c/polymorphism-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/polymorphism-in-c/polymorphism-in-c/</guid><description>Learn polymorphism in C++ with clear code examples: virtual functions, override, abstract classes, templates, and the mistakes beginners make most often.</description><category>Polymorphism</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Polymorphism vs. Inheritance: What&apos;s the Difference?</title><link>https://cppfromscratch.site/polymorphism-in-c/polymorphism-vs-inheritance-what-s-the-difference/</link><guid isPermaLink="true">https://cppfromscratch.site/polymorphism-in-c/polymorphism-vs-inheritance-what-s-the-difference/</guid><description>Inheritance reuses code through a base class. Polymorphism lets one interface behave differently for each object. Compare the two with C++ examples.</description><category>Polymorphism</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the Four Types of Polymorphism?</title><link>https://cppfromscratch.site/polymorphism-in-c/what-are-the-four-types-of-polymorphism/</link><guid isPermaLink="true">https://cppfromscratch.site/polymorphism-in-c/what-are-the-four-types-of-polymorphism/</guid><description>The four types of polymorphism are overloading, coercion, parametric and inclusion, grouped as ad hoc and universal. Examples in C++ for each one.</description><category>Polymorphism</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does Polymorphism Mean in Computer Science?</title><link>https://cppfromscratch.site/polymorphism-in-c/what-does-polymorphism-mean-in-computer-science/</link><guid isPermaLink="true">https://cppfromscratch.site/polymorphism-in-c/what-does-polymorphism-mean-in-computer-science/</guid><description>In computer science, polymorphism means one name or operation can work with many types or behave in different ways. C++ uses the word in a specific sense too.</description><category>Polymorphism</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is Polymorphism in C++? A Simple Explanation</title><link>https://cppfromscratch.site/polymorphism-in-c/what-is-polymorphism-in-c-a-simple-explanation/</link><guid isPermaLink="true">https://cppfromscratch.site/polymorphism-in-c/what-is-polymorphism-in-c-a-simple-explanation/</guid><description>Polymorphism in C++ means one call can do different things depending on the object. This simple explanation uses an everyday example and a short code sample.</description><category>Polymorphism</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Encapsulation in C++</title><link>https://cppfromscratch.site/encapsulation-in-c/encapsulation-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/encapsulation-in-c/encapsulation-in-c/</guid><description>Encapsulation in C++: how private data, public member functions and access control keep objects valid, with a clear class example and common mistakes.</description><category>Encapsulation</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Write &quot;I Love You&quot; in C++</title><link>https://cppfromscratch.site/encapsulation-in-c/how-to-write-i-love-you-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/encapsulation-in-c/how-to-write-i-love-you-in-c/</guid><description>Learn how to write I love you in C++ with std::cout, escape quotes, and keep a message private in a small class that shows encapsulation in action.</description><category>Encapsulation</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the Three Types of Encapsulation?</title><link>https://cppfromscratch.site/encapsulation-in-c/what-are-the-three-types-of-encapsulation/</link><guid isPermaLink="true">https://cppfromscratch.site/encapsulation-in-c/what-are-the-three-types-of-encapsulation/</guid><description>Encapsulation isn&apos;t usually split into three types. In C++, the three access levels are public, private and protected, and here is how each one works.</description><category>Encapsulation</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is Encapsulation? Definition and Example</title><link>https://cppfromscratch.site/encapsulation-in-c/what-is-encapsulation-definition-and-example/</link><guid isPermaLink="true">https://cppfromscratch.site/encapsulation-in-c/what-is-encapsulation-definition-and-example/</guid><description>Encapsulation bundles data with the functions that use it and hides the details. See a simple C++ Rectangle example that shows it in action.</description><category>Encapsulation</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Which Is Harder, C or C++?</title><link>https://cppfromscratch.site/encapsulation-in-c/which-is-harder-c-or-c/</link><guid isPermaLink="true">https://cppfromscratch.site/encapsulation-in-c/which-is-harder-c-or-c/</guid><description>Most learners find C++ harder than C because it adds classes, templates and a large standard library. Here is why, and how to choose which to learn first.</description><category>Encapsulation</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Abstract Classes in C++</title><link>https://cppfromscratch.site/c-abstract-class/abstract-classes-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-abstract-class/abstract-classes-in-c/</guid><description>Learn what an abstract class is in C++, how pure virtual functions work and which mistakes to avoid, with a complete example you can compile and run.</description><category>Abstract Classes</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are Abstract Classes in OOP?</title><link>https://cppfromscratch.site/c-abstract-class/what-are-abstract-classes-in-oop/</link><guid isPermaLink="true">https://cppfromscratch.site/c-abstract-class/what-are-abstract-classes-in-oop/</guid><description>In object-oriented programming, an abstract class is a base class that cannot be instantiated on its own. Here is what that means in Java, C#, Python and C++.</description><category>Abstract Classes</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the Three Types of Abstraction?</title><link>https://cppfromscratch.site/c-abstract-class/what-are-the-three-types-of-abstraction/</link><guid isPermaLink="true">https://cppfromscratch.site/c-abstract-class/what-are-the-three-types-of-abstraction/</guid><description>Abstraction in programming is often split into three types: data, control and procedural. Here is what each one means, with a short C++ example for each.</description><category>Abstract Classes</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does an Abstract Class Do?</title><link>https://cppfromscratch.site/c-abstract-class/what-does-an-abstract-class-do/</link><guid isPermaLink="true">https://cppfromscratch.site/c-abstract-class/what-does-an-abstract-class-do/</guid><description>An abstract class defines a shared interface, blocks direct object creation and forces derived classes to fill in key functions. Here is how that works in C++.</description><category>Abstract Classes</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Friend Functions in C++</title><link>https://cppfromscratch.site/c-friend-function/friend-functions-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-friend-function/friend-functions-in-c/</guid><description>Learn what a friend function is in C++, how the friend keyword lets a non-member function reach private members, and when to use one, with code examples.</description><category>Friend Functions</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the 5 Types of Inheritance in C++?</title><link>https://cppfromscratch.site/c-friend-function/what-are-the-5-types-of-inheritance-in/</link><guid isPermaLink="true">https://cppfromscratch.site/c-friend-function/what-are-the-5-types-of-inheritance-in/</guid><description>Learn the five commonly listed types of inheritance in C++: single, multiple, multilevel, hierarchical and hybrid, with a short example of each.</description><category>Friend Functions</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Friend Class in C++?</title><link>https://cppfromscratch.site/c-friend-function/what-is-a-friend-class-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-friend-function/what-is-a-friend-class-in-c/</guid><description>Learn what a friend class is in C++, how a friend declaration gives one class access to another&apos;s private members, and the limits of that access.</description><category>Friend Functions</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Access Modifiers in C++</title><link>https://cppfromscratch.site/access-modifiers-in-c/access-modifiers-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/access-modifiers-in-c/access-modifiers-in-c/</guid><description>Learn C++ access modifiers: how public, private and protected control access to class members, plus defaults for class and struct, with examples.</description><category>Access Modifiers</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are Access Modifiers in Java?</title><link>https://cppfromscratch.site/access-modifiers-in-c/what-are-access-modifiers-in-java/</link><guid isPermaLink="true">https://cppfromscratch.site/access-modifiers-in-c/what-are-access-modifiers-in-java/</guid><description>Java has four access levels: public, protected, private and package-private, the default with no keyword. Examples and a comparison with C++.</description><category>Access Modifiers</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are Access Modifiers in Salesforce Apex?</title><link>https://cppfromscratch.site/access-modifiers-in-c/what-are-access-modifiers-in-salesforce-apex/</link><guid isPermaLink="true">https://cppfromscratch.site/access-modifiers-in-c/what-are-access-modifiers-in-salesforce-apex/</guid><description>Apex access modifiers are public, private, protected and global. Learn what each one allows, how the default works, and how they compare with C++ and Java.</description><category>Access Modifiers</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the Three Types of Access Specifiers?</title><link>https://cppfromscratch.site/access-modifiers-in-c/what-are-the-three-types-of-access-specifiers/</link><guid isPermaLink="true">https://cppfromscratch.site/access-modifiers-in-c/what-are-the-three-types-of-access-specifiers/</guid><description>C++ has three access specifiers: public, private and protected. Learn what each one allows, who can reach each member, and which one to use.</description><category>Access Modifiers</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does new() Do in C#?</title><link>https://cppfromscratch.site/access-modifiers-in-c/what-does-new-do-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/access-modifiers-in-c/what-does-new-do-in-c/</guid><description>In C#, new creates objects and calls their constructors, can be used as the new() generic constraint, and hides inherited members. Includes a C++ comparison.</description><category>Access Modifiers</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Operator Overloading in C++</title><link>https://cppfromscratch.site/operator-overloading-in-c/operator-overloading-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/operator-overloading-in-c/operator-overloading-in-c/</guid><description>Learn how operator overloading works in C++: syntax, a full example, member vs. non-member rules, operators you can&apos;t overload, and pitfalls.</description><category>Operator Overloading</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Does C++ Allow Operator Overloading?</title><link>https://cppfromscratch.site/operator-overloading-in-c/does-c-allow-operator-overloading/</link><guid isPermaLink="true">https://cppfromscratch.site/operator-overloading-in-c/does-c-allow-operator-overloading/</guid><description>Yes, C++ allows operator overloading for your own types. Here is how it compares with C, Java, C#, and Python, and where the feature has limits.</description><category>Operator Overloading</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is Operator Overloading? Explained With an Example</title><link>https://cppfromscratch.site/operator-overloading-in-c/what-is-operator-overloading-explained-with-an-example/</link><guid isPermaLink="true">https://cppfromscratch.site/operator-overloading-in-c/what-is-operator-overloading-explained-with-an-example/</guid><description>Operator overloading lets a class define what +, ==, or &lt;&lt; does for its objects. A short C++ example with a Money class shows how it works in code.</description><category>Operator Overloading</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Point of Operator Overloading?</title><link>https://cppfromscratch.site/operator-overloading-in-c/what-is-the-point-of-operator-overloading/</link><guid isPermaLink="true">https://cppfromscratch.site/operator-overloading-in-c/what-is-the-point-of-operator-overloading/</guid><description>Operator overloading makes custom types read like built-in ones, so a + b or cout &lt;&lt; value stays clear. Learn the real benefits and the risks of overusing it.</description><category>Operator Overloading</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Which Operators Cannot Be Overloaded in C++?</title><link>https://cppfromscratch.site/operator-overloading-in-c/which-operators-cannot-be-overloaded-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/operator-overloading-in-c/which-operators-cannot-be-overloaded-in-c/</guid><description>The scope resolution, member access, pointer-to-member, and conditional operators can&apos;t be overloaded in C++. Here is the full list and the rules behind it.</description><category>Operator Overloading</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Static Classes in C++</title><link>https://cppfromscratch.site/static-class-in-c/static-classes-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/static-class-in-c/static-classes-in-c/</guid><description>C++ has no static class keyword. Here is how static members, utility classes and namespaces cover the same job, with short code examples for each.</description><category>Static Classes</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C++ Statically or Dynamically Typed?</title><link>https://cppfromscratch.site/static-class-in-c/is-c-statically-or-dynamically-typed/</link><guid isPermaLink="true">https://cppfromscratch.site/static-class-in-c/is-c-statically-or-dynamically-typed/</guid><description>C++ is statically typed, so the compiler checks types before the program runs. It still has some runtime type features, such as virtual functions.</description><category>Static Classes</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Static Class?</title><link>https://cppfromscratch.site/static-class-in-c/what-is-a-static-class/</link><guid isPermaLink="true">https://cppfromscratch.site/static-class-in-c/what-is-a-static-class/</guid><description>A static class holds only static members and cannot be instantiated. C++ has no such keyword, but you can build the same effect with a class or a namespace.</description><category>Static Classes</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is static in C? Explained With an Example</title><link>https://cppfromscratch.site/static-class-in-c/what-is-static-in-c-explained-with-an/</link><guid isPermaLink="true">https://cppfromscratch.site/static-class-in-c/what-is-static-in-c-explained-with-an/</guid><description>In C, static keeps a local variable&apos;s value between function calls and limits a variable or function to its own file. A short example shows both uses.</description><category>Static Classes</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The final Keyword in C++</title><link>https://cppfromscratch.site/c-final-keyword/the-final-keyword-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-final-keyword/the-final-keyword-in-c/</guid><description>Learn how the final keyword in C++ stops a class from being inherited or a virtual function from being overridden, with short, working code examples.</description><category>final</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C++ a Dying Language?</title><link>https://cppfromscratch.site/c-final-keyword/is-c-a-dying-language/</link><guid isPermaLink="true">https://cppfromscratch.site/c-final-keyword/is-c-a-dying-language/</guid><description>No, C++ is not dying. Learn why it is still widely used, how it keeps evolving, and where you will still find it in real projects and industries today.</description><category>final</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are C++ Keywords?</title><link>https://cppfromscratch.site/c-final-keyword/what-are-c-keywords/</link><guid isPermaLink="true">https://cppfromscratch.site/c-final-keyword/what-are-c-keywords/</guid><description>Learn what C++ keywords are, why you can&apos;t use them as variable names, which words are reserved, and see the main groups with short examples.</description><category>final</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Template Metaprogramming in C++</title><link>https://cppfromscratch.site/c-metaprogramming/template-metaprogramming-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-metaprogramming/template-metaprogramming-in-c/</guid><description>Learn how C++ template metaprogramming runs code at compile time, with examples of recursive templates, type traits, if constexpr and concepts.</description><category>Template Metaprogramming</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Are C and C++ the Same?</title><link>https://cppfromscratch.site/c-metaprogramming/are-c-and-c-the-same/</link><guid isPermaLink="true">https://cppfromscratch.site/c-metaprogramming/are-c-and-c-the-same/</guid><description>C and C++ are related languages with separate standards. Learn how they differ in syntax, keywords, the standard library and how code is compiled.</description><category>Template Metaprogramming</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are __FILE__ and __LINE__ in C?</title><link>https://cppfromscratch.site/c-metaprogramming/what-are-file-and-line-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-metaprogramming/what-are-file-and-line-in-c/</guid><description>__FILE__ and __LINE__ are predefined macros that give the source file name and line number at compile time. Learn how to log with them in C and C++.</description><category>Template Metaprogramming</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Preprocessor in C?</title><link>https://cppfromscratch.site/c-metaprogramming/what-is-a-preprocessor-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-metaprogramming/what-is-a-preprocessor-in-c/</guid><description>The preprocessor runs before compilation, handling #include, #define and conditional lines. Learn how it works, with macro examples and common pitfalls.</description><category>Template Metaprogramming</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is C Programming?</title><link>https://cppfromscratch.site/c-metaprogramming/what-is-c-programming/</link><guid isPermaLink="true">https://cppfromscratch.site/c-metaprogramming/what-is-c-programming/</guid><description>C is a compiled, general-purpose language from the 1970s, still used for operating systems and embedded devices. Learn its basics and how it relates to C++.</description><category>Template Metaprogramming</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>SOLID Principles in C++</title><link>https://cppfromscratch.site/solid-principles-in-c/solid-principles-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/solid-principles-in-c/solid-principles-in-c/</guid><description>Learn the five SOLID principles in C++ with short examples of single responsibility, open/closed, Liskov, interface segregation and dependency inversion.</description><category>SOLID Principles</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is SOLID Only for OOP?</title><link>https://cppfromscratch.site/solid-principles-in-c/is-solid-only-for-oop/</link><guid isPermaLink="true">https://cppfromscratch.site/solid-principles-in-c/is-solid-only-for-oop/</guid><description>SOLID uses object-oriented terms, but its core ideas also apply to plain functions and templates in C++. Learn where the ideas fit beyond classes.</description><category>SOLID Principles</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the 5 Principles of Java?</title><link>https://cppfromscratch.site/solid-principles-in-c/what-are-the-5-principles-of-java/</link><guid isPermaLink="true">https://cppfromscratch.site/solid-principles-in-c/what-are-the-5-principles-of-java/</guid><description>Java has no official set of five principles. Learn the two lists people usually mean, SOLID and the core OOP concepts, and how they apply to C++.</description><category>SOLID Principles</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the Top 10 Principles of Clean Code?</title><link>https://cppfromscratch.site/solid-principles-in-c/what-are-the-top-10-principles-of-clean/</link><guid isPermaLink="true">https://cppfromscratch.site/solid-principles-in-c/what-are-the-top-10-principles-of-clean/</guid><description>There is no official top 10 list of clean code principles. Here are ten widely cited ideas, each with a short explanation and a C++ example where useful.</description><category>SOLID Principles</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Why Are SOLID Principles Important?</title><link>https://cppfromscratch.site/solid-principles-in-c/why-are-solid-principles-important/</link><guid isPermaLink="true">https://cppfromscratch.site/solid-principles-in-c/why-are-solid-principles-important/</guid><description>SOLID principles help keep C++ code easier to change, test and reuse. Learn the problems they prevent, see a coupling example and understand their limits.</description><category>SOLID Principles</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Dependency Injection in C++</title><link>https://cppfromscratch.site/dependency-injection-in-c/dependency-injection-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/dependency-injection-in-c/dependency-injection-in-c/</guid><description>Learn dependency injection in C++: how classes get their dependencies, why it aids testing, and how to write constructor injection with short examples.</description><category>Dependency Injection</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How Does Dependency Injection Work Internally?</title><link>https://cppfromscratch.site/dependency-injection-in-c/how-does-dependency-injection-work-internally/</link><guid isPermaLink="true">https://cppfromscratch.site/dependency-injection-in-c/how-does-dependency-injection-work-internally/</guid><description>In plain C++, dependency injection works through normal code, with no hidden engine. Learn how object creation, ownership and virtual calls work together.</description><category>Dependency Injection</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the Three Types of Dependency Injection?</title><link>https://cppfromscratch.site/dependency-injection-in-c/what-are-the-three-types-of-dependency-injection/</link><guid isPermaLink="true">https://cppfromscratch.site/dependency-injection-in-c/what-are-the-three-types-of-dependency-injection/</guid><description>Dependency injection has three common styles: constructor, setter and interface injection. Compare them in C++ with examples and learn when to use each.</description><category>Dependency Injection</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Dependency Injection Container?</title><link>https://cppfromscratch.site/dependency-injection-in-c/what-is-a-dependency-injection-container/</link><guid isPermaLink="true">https://cppfromscratch.site/dependency-injection-in-c/what-is-a-dependency-injection-container/</guid><description>A dependency injection container builds objects and their dependencies from registered rules. Learn what it does and when a small program can skip one.</description><category>Dependency Injection</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is Dependency Injection in C++?</title><link>https://cppfromscratch.site/dependency-injection-in-c/what-is-dependency-injection-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/dependency-injection-in-c/what-is-dependency-injection-in-c/</guid><description>Dependency injection in C++ means a class receives its dependencies from outside, usually via its constructor. Learn why it helps and see a short example.</description><category>Dependency Injection</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Concurrency in C++</title><link>https://cppfromscratch.site/concurrency-in-c/concurrency-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/concurrency-in-c/concurrency-in-c/</guid><description>Learn concurrency in C++ with std::thread, mutexes, atomics and futures. Covers data races, deadlocks and common mistakes, with short compilable examples.</description><category>Concurrency</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Can I Learn C in 3 Months?</title><link>https://cppfromscratch.site/concurrency-in-c/can-i-learn-c-in-3-months/</link><guid isPermaLink="true">https://cppfromscratch.site/concurrency-in-c/can-i-learn-c-in-3-months/</guid><description>Three months of steady practice can cover C++ basics like syntax, loops, functions and classes. Templates and memory management usually take longer.</description><category>Concurrency</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C Tougher Than Python?</title><link>https://cppfromscratch.site/concurrency-in-c/is-c-tougher-than-python/</link><guid isPermaLink="true">https://cppfromscratch.site/concurrency-in-c/is-c-tougher-than-python/</guid><description>For most beginners C++ is harder than Python, since it adds static types, a compile step and manual memory control. Python is gentler to start with.</description><category>Concurrency</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is Concurrency in Operating Systems?</title><link>https://cppfromscratch.site/concurrency-in-c/what-is-concurrency-in-operating-systems/</link><guid isPermaLink="true">https://cppfromscratch.site/concurrency-in-c/what-is-concurrency-in-operating-systems/</guid><description>In operating systems, concurrency means several tasks make progress over the same period, taking turns on one core or running at once on many cores.</description><category>Concurrency</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>C++ String Methods</title><link>https://cppfromscratch.site/c-string-methods/c-string-methods/</link><guid isPermaLink="true">https://cppfromscratch.site/c-string-methods/c-string-methods/</guid><description>A guide to C++ string methods: std::string member functions like size, substr, find and replace, plus the C-style functions in &lt;cstring&gt;, with examples.</description><category>String Methods</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are String Functions in C? With Examples</title><link>https://cppfromscratch.site/c-string-methods/what-are-string-functions-in-c-with-examples/</link><guid isPermaLink="true">https://cppfromscratch.site/c-string-methods/what-are-string-functions-in-c-with-examples/</guid><description>Learn the string functions in C from &lt;string.h&gt;, such as strlen, strcpy, strcat, strcmp, and strstr, with short examples and buffer-safety tips.</description><category>String Methods</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are Strings in C Programming?</title><link>https://cppfromscratch.site/c-string-methods/what-are-strings-in-c-programming/</link><guid isPermaLink="true">https://cppfromscratch.site/c-string-methods/what-are-strings-in-c-programming/</guid><description>In C programming, strings are char arrays ending in a null character, while C++ adds std::string. Compare both with short examples and common mistakes.</description><category>String Methods</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a C String?</title><link>https://cppfromscratch.site/c-string-methods/what-is-a-c-string/</link><guid isPermaLink="true">https://cppfromscratch.site/c-string-methods/what-is-a-c-string/</guid><description>A C string is a char array that ends with a null character. Learn how it is stored, why the terminator matters, and how strlen counts characters.</description><category>String Methods</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The C++ String find() Function</title><link>https://cppfromscratch.site/c-string-find/the-c-string-find-function/</link><guid isPermaLink="true">https://cppfromscratch.site/c-string-find/the-c-string-find-function/</guid><description>Learn how the C++ std::string find() function returns a match&apos;s index, what npos means when nothing matches, and how rfind() and find_first_of() differ.</description><category>Finding in Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Find a Character in a String</title><link>https://cppfromscratch.site/c-string-find/how-to-find-a-character-in-a-string/</link><guid isPermaLink="true">https://cppfromscratch.site/c-string-find/how-to-find-a-character-in-a-string/</guid><description>Learn how to find a character in a C++ string with find(), find_first_of(), std::find or strchr(), and how to check that the search found something.</description><category>Finding in Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Check if a String Contains a Substring in C++</title><link>https://cppfromscratch.site/c-string-contains/how-to-check-if-a-string-contains-a/</link><guid isPermaLink="true">https://cppfromscratch.site/c-string-contains/how-to-check-if-a-string-contains-a/</guid><description>Learn how to check if a C++ string contains a substring using find(), the C++23 contains() member and strstr() for C-style strings, with examples.</description><category>String Contains</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is There a String Library in C?</title><link>https://cppfromscratch.site/c-string-contains/is-there-a-string-library-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-string-contains/is-there-a-string-library-in-c/</guid><description>C has no built-in string class. Its string functions come from the standard string.h header, which works on null-terminated char arrays, with examples.</description><category>String Contains</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does a String Contain?</title><link>https://cppfromscratch.site/c-string-contains/what-does-a-string-contain/</link><guid isPermaLink="true">https://cppfromscratch.site/c-string-contains/what-does-a-string-contain/</guid><description>In C, a string is a char array ending in a null character. In C++, std::string keeps its characters and size. Here is what a string holds, with examples.</description><category>String Contains</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is #include &lt;string.h&gt; in C?</title><link>https://cppfromscratch.site/c-string-contains/what-is-include-string-h-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-string-contains/what-is-include-string-h-in-c/</guid><description>The string.h header declares C&apos;s string functions, such as strlen, strcpy and strcmp. Here is what the #include line does and how to use it, with examples.</description><category>String Contains</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Compare Two Strings in C++</title><link>https://cppfromscratch.site/how-to-compare-two-strings-in-c/how-to-compare-two-strings-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-compare-two-strings-in-c/how-to-compare-two-strings-in-c/</guid><description>Learn how to compare two strings in C++ using == for std::string, compare() for ordering, and strcmp() for C-style strings, with clear examples.</description><category>Comparing Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Write a C Program to Compare Two Strings</title><link>https://cppfromscratch.site/how-to-compare-two-strings-in-c/how-to-write-a-c-program-to-compare/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-compare-two-strings-in-c/how-to-write-a-c-program-to-compare/</guid><description>Write a C program that compares two strings with strcmp(), reads input with fgets(), and checks the result. Full code, with notes on common errors.</description><category>Comparing Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Should I Use equals() or == to Compare Strings?</title><link>https://cppfromscratch.site/how-to-compare-two-strings-in-c/should-i-use-equals-or-to-compare-strings/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-compare-two-strings-in-c/should-i-use-equals-or-to-compare-strings/</guid><description>In C++, use == to compare std::string values. There is no equals() method, and C-style strings need strcmp(). Here is why, with clear, short examples.</description><category>Comparing Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are Strings in C? With Examples</title><link>https://cppfromscratch.site/how-to-compare-two-strings-in-c/what-are-strings-in-c-with-examples/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-compare-two-strings-in-c/what-are-strings-in-c-with-examples/</guid><description>In C, a string is a char array that ends with a null terminator. Learn how C strings are stored, printed and measured, with short, clear examples.</description><category>Comparing Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does strcmp() Do in C?</title><link>https://cppfromscratch.site/how-to-compare-two-strings-in-c/what-does-strcmp-do-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-compare-two-strings-in-c/what-does-strcmp-do-in-c/</guid><description>strcmp() compares two C strings character by character and returns 0 when they match. Learn what the other return values mean, with examples.</description><category>Comparing Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Concatenate Strings in C++</title><link>https://cppfromscratch.site/how-to-concatenate-strings-in-c/how-to-concatenate-strings-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-concatenate-strings-in-c/how-to-concatenate-strings-in-c/</guid><description>Learn how to concatenate strings in C++ with std::string using +, +=, and append(), plus numbers with to_string and C-style strcat, with examples.</description><category>Concatenating Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How Do I Concatenate Two Strings?</title><link>https://cppfromscratch.site/how-to-concatenate-strings-in-c/how-do-i-concatenate-two-strings/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-concatenate-strings-in-c/how-do-i-concatenate-two-strings/</guid><description>To concatenate two strings in C++, use std::string with the + operator, or += and append() to add to an existing one. Covers examples and common mistakes.</description><category>Concatenating Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a String? Definition and Example</title><link>https://cppfromscratch.site/how-to-concatenate-strings-in-c/what-is-a-string-definition-and-example/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-concatenate-strings-in-c/what-is-a-string-definition-and-example/</guid><description>A string is a sequence of characters used to store text. See a simple C++ example with std::string and a C-style char array, and why they differ.</description><category>Concatenating Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is String Concatenation?</title><link>https://cppfromscratch.site/how-to-concatenate-strings-in-c/what-is-string-concatenation/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-concatenate-strings-in-c/what-is-string-concatenation/</guid><description>String concatenation joins two or more strings end to end into one longer string. Learn the idea, the order rules, and a short C++ example using +.</description><category>Concatenating Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the CONCATENATE() Function Used For?</title><link>https://cppfromscratch.site/how-to-concatenate-strings-in-c/what-is-the-concatenate-function-used-for/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-concatenate-strings-in-c/what-is-the-concatenate-function-used-for/</guid><description>Spreadsheets like Excel and Google Sheets use CONCATENATE() to join text. C++ has no such function, but you can join strings with + or append().</description><category>Concatenating Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Reverse a String in C++</title><link>https://cppfromscratch.site/how-to-reverse-a-string-in-c/how-to-reverse-a-string-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-reverse-a-string-in-c/how-to-reverse-a-string-in-c/</guid><description>Learn three ways to reverse a std::string in C++: std::reverse, reverse iterators, and a manual loop, with examples and a note on multi-byte UTF-8 text.</description><category>Reversing Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Does reverse() Work on Strings?</title><link>https://cppfromscratch.site/how-to-reverse-a-string-in-c/does-reverse-work-on-strings/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-reverse-a-string-in-c/does-reverse-work-on-strings/</guid><description>Yes, std::reverse works on std::string in C++, but std::string has no reverse() member. Learn how the call works and the common mistakes to avoid.</description><category>Reversing Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How Do You Reverse a String?</title><link>https://cppfromscratch.site/how-to-reverse-a-string-in-c/how-do-you-reverse-a-string/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-reverse-a-string-in-c/how-do-you-reverse-a-string/</guid><description>Reversing a string means putting its characters in the opposite order. Here is the idea and a short C++ example that swaps characters from both ends.</description><category>Reversing Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Use reversed() in Python</title><link>https://cppfromscratch.site/how-to-reverse-a-string-in-c/how-to-use-reversed-in-python/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-reverse-a-string-in-c/how-to-use-reversed-in-python/</guid><description>Python&apos;s reversed() returns a reverse iterator without copying the string. Learn how to use it, join the result, and compare it with C++ std::reverse.</description><category>Reversing Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Why Is strrev() Not Working in C?</title><link>https://cppfromscratch.site/how-to-reverse-a-string-in-c/why-is-strrev-not-working-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-reverse-a-string-in-c/why-is-strrev-not-working-in-c/</guid><description>strrev() is not part of standard C, so many compilers do not provide it. Learn why it fails, how Windows names it _strrev(), and a portable fix.</description><category>Reversing Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Iterate Through a String in C++</title><link>https://cppfromscratch.site/how-to-iterate-through-a-string-in-c/how-to-iterate-through-a-string-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-iterate-through-a-string-in-c/how-to-iterate-through-a-string-in-c/</guid><description>Learn how to loop through each character of a string in C++ with range-based for loops, indexes and iterators, plus examples and common mistakes.</description><category>Iterating Over Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Can I Iterate Over a String?</title><link>https://cppfromscratch.site/how-to-iterate-through-a-string-in-c/can-i-iterate-over-a-string/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-iterate-through-a-string-in-c/can-i-iterate-over-a-string/</guid><description>Yes, you can loop over a string one character at a time in C++. See range-based for loops, index loops, iterators and C-style strings, with examples.</description><category>Iterating Over Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are String Operations in C?</title><link>https://cppfromscratch.site/how-to-iterate-through-a-string-in-c/what-are-string-operations-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-iterate-through-a-string-in-c/what-are-string-operations-in-c/</guid><description>Learn the common string operations in C++, including length, access, joining, comparing, searching, extracting, and changing text with std::string.</description><category>Iterating Over Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a String in Programming? With Examples</title><link>https://cppfromscratch.site/how-to-iterate-through-a-string-in-c/what-is-a-string-in-programming-with-examples/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-iterate-through-a-string-in-c/what-is-a-string-in-programming-with-examples/</guid><description>A string is a sequence of characters, such as the text Hello. Here are simple C++ examples of strings, including std::string and C-style strings.</description><category>Iterating Over Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Split a String by a Delimiter in C++</title><link>https://cppfromscratch.site/c-split-string-by-delimiter/how-to-split-a-string-by-a-delimiter/</link><guid isPermaLink="true">https://cppfromscratch.site/c-split-string-by-delimiter/how-to-split-a-string-by-a-delimiter/</guid><description>C++ has no built-in split() for strings. Learn how to split a string by a delimiter with getline, find and substr, and std::views::split, with examples.</description><category>Splitting Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Split a String by a Delimiter in C++</title><link>https://cppfromscratch.site/c-split-string-by-delimiter/how-to-split-a-string-by-a-delimiter-2/</link><guid isPermaLink="true">https://cppfromscratch.site/c-split-string-by-delimiter/how-to-split-a-string-by-a-delimiter-2/</guid><description>Split a string on a delimiter in C++ with getline for one character, or find_first_of for any of several. It also shows how empty pieces are kept or dropped.</description><category>Splitting Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Split a String With a Delimiter in Python</title><link>https://cppfromscratch.site/c-split-string-by-delimiter/how-to-split-a-string-with-a-delimiter/</link><guid isPermaLink="true">https://cppfromscratch.site/c-split-string-by-delimiter/how-to-split-a-string-with-a-delimiter/</guid><description>In Python, str.split() breaks a string into a list at each delimiter. Learn the separator, maxsplit and empty-piece rules, with examples and a C++ comparison.</description><category>Splitting Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Use split()</title><link>https://cppfromscratch.site/c-split-string-by-delimiter/how-to-use-split/</link><guid isPermaLink="true">https://cppfromscratch.site/c-split-string-by-delimiter/how-to-use-split/</guid><description>C++ has no split() function. Here is how to get the same result with getline, what split() does in other languages, and where to find Boost&apos;s split function.</description><category>Splitting Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does Split() Do in C#?</title><link>https://cppfromscratch.site/c-split-string-by-delimiter/what-does-split-do-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-split-string-by-delimiter/what-does-split-do-in-c/</guid><description>In C#, string.Split() returns an array of the pieces between delimiters. See the char and options overloads, empty entries, and how it compares to C++.</description><category>Splitting Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>stringstream in C++</title><link>https://cppfromscratch.site/c-string-stream/stringstream-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-string-stream/stringstream-in-c/</guid><description>stringstream in C++ explained: how the &lt;sstream&gt; classes read and write text in memory, convert strings and numbers, split text, and avoid common mistakes.</description><category>stringstream</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Use getline() and stringstream in C++</title><link>https://cppfromscratch.site/c-string-stream/how-to-use-getline-and-stringstream-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-string-stream/how-to-use-getline-and-stringstream-in-c/</guid><description>How to use getline() with stringstream in C++: read lines from a string, split text on a delimiter, and avoid the common mix-up of &gt;&gt; with getline().</description><category>stringstream</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are ostream and istream in C++?</title><link>https://cppfromscratch.site/c-string-stream/what-are-ostream-and-istream-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-string-stream/what-are-ostream-and-istream-in-c/</guid><description>What are ostream and istream in C++? They are the standard classes for output and input, and cout, cin and the stringstream types build on them.</description><category>stringstream</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does &lt;sstream&gt; Do in C++?</title><link>https://cppfromscratch.site/c-string-stream/what-does-sstream-do-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-string-stream/what-does-sstream-do-in-c/</guid><description>What does &lt;sstream&gt; do in C++? It provides classes that read and write text in memory, using the same &lt;&lt; and &gt;&gt; operators as cin and cout, with examples.</description><category>stringstream</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Why Use stringstream in C++?</title><link>https://cppfromscratch.site/c-string-stream/why-use-stringstream-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-string-stream/why-use-stringstream-in-c/</guid><description>Why use stringstream in C++? It helps you format text, convert strings and numbers, and parse input, and it shows when a simpler option is better.</description><category>stringstream</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Read String Input in C++</title><link>https://cppfromscratch.site/c-input-string/how-to-read-string-input-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-input-string/how-to-read-string-input-in-c/</guid><description>Learn how to read string input in C++ with std::cin and std::getline, handle leftover newlines, check stream state, and avoid unsafe gets() calls.</description><category>Reading String Input</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Does input() Return a String in Python?</title><link>https://cppfromscratch.site/c-input-string/does-input-return-a-string-in-python/</link><guid isPermaLink="true">https://cppfromscratch.site/c-input-string/does-input-return-a-string-in-python/</guid><description>In Python 3, input() always returns a str, even when the user types digits. Learn how to convert the result to a number and why that step matters.</description><category>Reading String Input</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does strstr() Do in C?</title><link>https://cppfromscratch.site/c-input-string/what-does-strstr-do-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-input-string/what-does-strstr-do-in-c/</guid><description>strstr() searches a C string for a substring and returns a pointer to the first match, or NULL if nothing matches. Here is how to use it safely.</description><category>Reading String Input</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Switch on a String in C++</title><link>https://cppfromscratch.site/c-switch-string/how-to-switch-on-a-string-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-switch-string/how-to-switch-on-a-string-in-c/</guid><description>C++ does not let you switch on a std::string. See why, then compare if else chains, enum lookups and single-character switches with code examples.</description><category>Switching on Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Write a Switch Case in C</title><link>https://cppfromscratch.site/c-switch-string/how-to-write-a-switch-case-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-switch-string/how-to-write-a-switch-case-in-c/</guid><description>How to write a switch case in C, step by step: the syntax, the role of break and default, a full working program, and common mistakes to avoid.</description><category>Switching on Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a String in C Programming?</title><link>https://cppfromscratch.site/c-switch-string/what-is-a-string-in-c-programming/</link><guid isPermaLink="true">https://cppfromscratch.site/c-switch-string/what-is-a-string-in-c-programming/</guid><description>C has no string type. A C string is a char array ending in a null character. Learn how it&apos;s stored, how to measure it and how to use it safely.</description><category>Switching on Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Switch Statement?</title><link>https://cppfromscratch.site/c-switch-string/what-is-a-switch-statement/</link><guid isPermaLink="true">https://cppfromscratch.site/c-switch-string/what-is-a-switch-statement/</guid><description>A switch statement picks one block of code to run by matching a value against case labels. Learn how it works, how it compares with if else, and its limits.</description><category>Switching on Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Which Are the 32 Keywords in C?</title><link>https://cppfromscratch.site/c-switch-string/which-are-the-32-keywords-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-switch-string/which-are-the-32-keywords-in-c/</guid><description>C has 32 keywords in the original standard, from auto and break to while. Here&apos;s the full list, grouped by purpose, and why you can&apos;t use them as names.</description><category>Switching on Strings</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Convert a String to an Int in C++</title><link>https://cppfromscratch.site/c-convert-string-to-int/how-to-convert-a-string-to-an-int/</link><guid isPermaLink="true">https://cppfromscratch.site/c-convert-string-to-int/how-to-convert-a-string-to-an-int/</guid><description>Learn how to convert a string to an int in C++ using std::stoi, handle bad or out-of-range input, and try std::from_chars, with clear code examples.</description><category>String to Int</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Can I Convert a char to an int?</title><link>https://cppfromscratch.site/c-convert-string-to-int/can-i-convert-a-char-to-an-int/</link><guid isPermaLink="true">https://cppfromscratch.site/c-convert-string-to-int/can-i-convert-a-char-to-an-int/</guid><description>Can you convert a char to an int in C++? Yes. Learn why &apos;7&apos; is not the number 7, how to get its digit value, and which common mistakes to avoid.</description><category>String to Int</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Convert a String to an Integer in Excel</title><link>https://cppfromscratch.site/c-convert-string-to-int/how-to-convert-a-string-to-an-integer/</link><guid isPermaLink="true">https://cppfromscratch.site/c-convert-string-to-int/how-to-convert-a-string-to-an-integer/</guid><description>Learn how to convert text to a whole number in Excel with VALUE, double negatives, Paste Special and Text to Columns, plus the common pitfalls.</description><category>String to Int</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does the atoi() Function Do in C?</title><link>https://cppfromscratch.site/c-convert-string-to-int/what-does-the-atoi-function-do-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-convert-string-to-int/what-does-the-atoi-function-do-in-c/</guid><description>Learn what atoi() does in C: it reads a string, skips leading spaces, and returns an int. See its error behavior, its limits, and a short example.</description><category>String to Int</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the int * Type in C?</title><link>https://cppfromscratch.site/c-convert-string-to-int/what-is-the-int-type-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-convert-string-to-int/what-is-the-int-type-in-c/</guid><description>Learn what the int * type means in C: a pointer to an int that stores a memory address. See simple examples of declaring, using and passing one.</description><category>String to Int</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Convert an Int to a String in C++</title><link>https://cppfromscratch.site/c-convert-int-to-string/how-to-convert-an-int-to-a-string/</link><guid isPermaLink="true">https://cppfromscratch.site/c-convert-int-to-string/how-to-convert-an-int-to-a-string/</guid><description>Learn how to convert an int to a string in C++ using std::to_string, string streams and std::format, with short examples and common mistakes to avoid.</description><category>Int to String</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Can You Use int() on a String?</title><link>https://cppfromscratch.site/c-convert-int-to-string/can-you-use-int-on-a-string/</link><guid isPermaLink="true">https://cppfromscratch.site/c-convert-int-to-string/can-you-use-int-on-a-string/</guid><description>Can you use int() on a string in C++? No. Learn why int() does not parse text, and how std::stoi, std::atoi and string streams read a number from a string.</description><category>Int to String</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Convert a C String to std::string</title><link>https://cppfromscratch.site/c-convert-int-to-string/how-to-convert-a-c-string-to-std/</link><guid isPermaLink="true">https://cppfromscratch.site/c-convert-int-to-string/how-to-convert-a-c-string-to-std/</guid><description>Learn how to convert a C string to std::string in C++ by assignment or construction, with examples covering the null terminator, partial copies and c_str().</description><category>Int to String</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Convert a Char to an Int in C++</title><link>https://cppfromscratch.site/c-char-to-int/how-to-convert-a-char-to-an-int/</link><guid isPermaLink="true">https://cppfromscratch.site/c-char-to-int/how-to-convert-a-char-to-an-int/</guid><description>Learn how to convert a char to an int in C++. Get a character&apos;s numeric code, turn the digit &apos;7&apos; into the number 7, and avoid the most common mistakes.</description><category>Char to Int</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is char Always 1 Byte in C?</title><link>https://cppfromscratch.site/c-char-to-int/is-char-always-1-byte-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-char-to-int/is-char-always-1-byte-in-c/</guid><description>Yes, sizeof(char) is always 1 in C. The number of bits in that byte is set by CHAR_BIT, which is 8 on most systems. Here is what that means in practice.</description><category>Char to Int</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are %f and %d in C?</title><link>https://cppfromscratch.site/c-char-to-int/what-are-f-and-d-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-char-to-int/what-are-f-and-d-in-c/</guid><description>%d is the printf format for int values and %f is the format for floating-point values like double. Here is how each one works, with a short C example.</description><category>Char to Int</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does to_string() Do in C++?</title><link>https://cppfromscratch.site/c-char-to-int/what-does-to-string-do-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-char-to-int/what-does-to-string-do-in-c/</guid><description>std::to_string turns a number into a std::string. It works for ints, doubles and chars, but a double like 3.14 becomes 3.140000 and a char gives its code.</description><category>Char to Int</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Initialize a Vector in C++</title><link>https://cppfromscratch.site/c-vector-initialization/how-to-initialize-a-vector-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-vector-initialization/how-to-initialize-a-vector-in-c/</guid><description>A practical guide to initializing a std::vector in C++: empty vectors, brace lists, set sizes with fill values, copies from ranges, and common mistakes.</description><category>Vector Initialization</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Are ints Initialized to 0 in C?</title><link>https://cppfromscratch.site/c-vector-initialization/are-ints-initialized-to-0-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-vector-initialization/are-ints-initialized-to-0-in-c/</guid><description>Not always. Global and static ints start at 0 in C and C++, but local ints can hold an unknown value. Learn how to tell them apart and set zero on purpose.</description><category>Vector Initialization</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How Do I Resize a Vector in C++?</title><link>https://cppfromscratch.site/c-vector-initialization/how-do-i-resize-a-vector-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-vector-initialization/how-do-i-resize-a-vector-in-c/</guid><description>Learn how to resize a std::vector in C++ with resize(), reserve() and clear(), including what new elements hold and when capacity actually changes.</description><category>Vector Initialization</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How Does size() Work in C++?</title><link>https://cppfromscratch.site/c-vector-initialization/how-does-size-work-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-vector-initialization/how-does-size-work-in-c/</guid><description>size() returns how many elements a std::vector holds right now. Learn what it counts, how it differs from capacity and sizeof, and how to avoid common bugs.</description><category>Vector Initialization</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>ArrayList in C++: Using std::vector</title><link>https://cppfromscratch.site/arraylist-in-c/arraylist-in-c-using-std-vector/</link><guid isPermaLink="true">https://cppfromscratch.site/arraylist-in-c/arraylist-in-c-using-std-vector/</guid><description>C++ has no ArrayList class. std::vector does the same job: a list that grows as you add elements. Here is how to create, read, loop over and resize one.</description><category>Dynamic Arrays and Linked Lists</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Array vs. Linked List Implementation: What&apos;s the Difference?</title><link>https://cppfromscratch.site/arraylist-in-c/array-vs-linked-list-implementation-what-s-the/</link><guid isPermaLink="true">https://cppfromscratch.site/arraylist-in-c/array-vs-linked-list-implementation-what-s-the/</guid><description>An array stores elements in one block and reaches them by index. A linked list chains separate nodes together. Compare access, insertion and memory use.</description><category>Dynamic Arrays and Linked Lists</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are * and &amp; in C?</title><link>https://cppfromscratch.site/arraylist-in-c/what-are-and-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/arraylist-in-c/what-are-and-in-c/</guid><description>In C, * and &amp; are pointer operators. &amp; gets the address of a variable, and * reads or changes the value at that address. Examples show how each one works.</description><category>Dynamic Arrays and Linked Lists</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Linked List in C?</title><link>https://cppfromscratch.site/arraylist-in-c/what-is-a-linked-list-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/arraylist-in-c/what-is-a-linked-list-in-c/</guid><description>A linked list is a chain of nodes, each holding a value and a pointer to the next node. See a complete C example that builds, prints and frees one.</description><category>Dynamic Arrays and Linked Lists</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is gets() in C and Why Is It Unsafe?</title><link>https://cppfromscratch.site/arraylist-in-c/what-is-gets-in-c-and-why-is/</link><guid isPermaLink="true">https://cppfromscratch.site/arraylist-in-c/what-is-gets-in-c-and-why-is/</guid><description>gets() reads input with no limit on how many characters it stores, so it can overflow a buffer. Learn why it is unsafe and how fgets() is safer.</description><category>Dynamic Arrays and Linked Lists</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>std::array in C++</title><link>https://cppfromscratch.site/c-std-array/std-array-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-std-array/std-array-in-c/</guid><description>A complete guide to std::array in C++: declaring, initializing, reading elements, looping, passing to functions, and how it compares to C-style arrays.</description><category>std::array</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How Do I Define an Array?</title><link>https://cppfromscratch.site/c-std-array/how-do-i-define-an-array/</link><guid isPermaLink="true">https://cppfromscratch.site/c-std-array/how-do-i-define-an-array/</guid><description>Learn how to define an array in C++ using C-style syntax or std::array, with examples of sizes, initializers and a common mistake to watch out for.</description><category>std::array</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is get() in C?</title><link>https://cppfromscratch.site/c-std-array/what-is-get-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-std-array/what-is-get-in-c/</guid><description>C has no get() function for arrays. In C++, get() means std::get, which reads one std::array element by a fixed, compile-time index. Examples follow below.</description><category>std::array</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is std::array in C++?</title><link>https://cppfromscratch.site/c-std-array/what-is-std-array-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-std-array/what-is-std-array-in-c/</guid><description>std::array is a container from the &lt;array&gt; header, added in C++11. It stores a fixed number of same-typed elements, shown in a short example.</description><category>std::array</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>std::list in C++</title><link>https://cppfromscratch.site/c-std-list/std-list-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-std-list/std-list-in-c/</guid><description>std::list is the C++ standard library&apos;s doubly linked list. Learn to create one, add and remove elements, loop through it, and when to pick it over a vector.</description><category>std::list</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C Programming Still Relevant Today?</title><link>https://cppfromscratch.site/c-std-list/is-c-programming-still-relevant-today/</link><guid isPermaLink="true">https://cppfromscratch.site/c-std-list/is-c-programming-still-relevant-today/</guid><description>Yes, C is still widely used in operating systems, embedded devices and tools. Here is what that means for C++ learners and whether C is worth studying.</description><category>std::list</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is C++ Hard to Learn?</title><link>https://cppfromscratch.site/c-std-list/is-c-hard-to-learn/</link><guid isPermaLink="true">https://cppfromscratch.site/c-std-list/is-c-hard-to-learn/</guid><description>C++ has a steeper learning curve than many languages, but beginners can learn it in steps. See where the difficulty comes from and how to make progress.</description><category>std::list</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is std:: in C++?</title><link>https://cppfromscratch.site/c-std-list/what-is-std-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-std-list/what-is-std-in-c/</guid><description>std is the namespace that holds the C++ standard library, such as std::cout and std::string. Learn what the :: means and why it appears in code.</description><category>std::list</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>List vs Array in C++</title><link>https://cppfromscratch.site/list-vs-array-c/list-vs-array-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/list-vs-array-c/list-vs-array-in-c/</guid><description>Compare C++ arrays, std::array, std::vector and std::list by memory layout, element access and insertion cost, with code and a simple rule for choosing.</description><category>List vs Array</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is Cython Faster Than C?</title><link>https://cppfromscratch.site/list-vs-array-c/is-cython-faster-than-c/</link><guid isPermaLink="true">https://cppfromscratch.site/list-vs-array-c/is-cython-faster-than-c/</guid><description>Cython is usually no faster than hand-written C. Untyped code stays slow, and typed loops can get close to C speed. Here is what to expect and why.</description><category>List vs Array</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Should I Use a List or an Array?</title><link>https://cppfromscratch.site/list-vs-array-c/should-i-use-a-list-or-an-array/</link><guid isPermaLink="true">https://cppfromscratch.site/list-vs-array-c/should-i-use-a-list-or-an-array/</guid><description>In C++, start with std::vector, use std::array when the size is fixed, and reach for std::list only in rare cases. Here is a quick way to decide.</description><category>List vs Array</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Difference Between list() and [] in Python?</title><link>https://cppfromscratch.site/list-vs-array-c/what-is-the-difference-between-list-and-in/</link><guid isPermaLink="true">https://cppfromscratch.site/list-vs-array-c/what-is-the-difference-between-list-and-in/</guid><description>list() and [] both make a new empty Python list. Learn how they differ when converting iterables and in speed, and how C++ std::vector compares.</description><category>List vs Array</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Which Is Faster in C#, Array or List?</title><link>https://cppfromscratch.site/list-vs-array-c/which-is-faster-in-c-array-or-list/</link><guid isPermaLink="true">https://cppfromscratch.site/list-vs-array-c/which-is-faster-in-c-array-or-list/</guid><description>In C#, arrays are usually a bit faster than List for indexed access, but the gap is often small. Here is why, and how to measure it yourself.</description><category>List vs Array</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Use a Dictionary in C++ With std::map</title><link>https://cppfromscratch.site/dictionary-in-c/how-to-use-a-dictionary-in-c-with/</link><guid isPermaLink="true">https://cppfromscratch.site/dictionary-in-c/how-to-use-a-dictionary-in-c-with/</guid><description>Learn how to use a dictionary in C++ with std::map. Add, look up, remove and loop over key-value pairs, and compare it with std::unordered_map.</description><category>Dictionaries with std::map</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Write &quot;I Love You&quot; in the C Language</title><link>https://cppfromscratch.site/dictionary-in-c/how-to-write-i-love-you-in-the/</link><guid isPermaLink="true">https://cppfromscratch.site/dictionary-in-c/how-to-write-i-love-you-in-the/</guid><description>Learn how to write &quot;I love you&quot; in C with a char array and printf, and see why the char array must hold 11 bytes, including the null terminator.</description><category>Dictionaries with std::map</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is There a Dictionary in C++?</title><link>https://cppfromscratch.site/dictionary-in-c/is-there-a-dictionary-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/dictionary-in-c/is-there-a-dictionary-in-c/</guid><description>C++ has no class named Dictionary, but std::map and std::unordered_map store key-value pairs. Here is how they compare, with a short example.</description><category>Dictionaries with std::map</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are the Types of Data Structures in C?</title><link>https://cppfromscratch.site/dictionary-in-c/what-are-the-types-of-data-structures-in/</link><guid isPermaLink="true">https://cppfromscratch.site/dictionary-in-c/what-are-the-types-of-data-structures-in/</guid><description>Learn the main types of data structures in C, including arrays, structs, linked lists, stacks, queues, trees, graphs and hash tables, with examples.</description><category>Dictionaries with std::map</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Hash Sets in C++ With std::unordered_set</title><link>https://cppfromscratch.site/hashset-in-c/hash-sets-in-c-with-std-unordered-set/</link><guid isPermaLink="true">https://cppfromscratch.site/hashset-in-c/hash-sets-in-c-with-std-unordered-set/</guid><description>Learn how std::unordered_set works in C++: inserting, finding, erasing and looping over unique elements, with code examples and common mistakes to avoid.</description><category>Hash Sets</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is There a HashSet in C#?</title><link>https://cppfromscratch.site/hashset-in-c/is-there-a-hashset-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/hashset-in-c/is-there-a-hashset-in-c/</guid><description>Yes, C# has HashSet&lt;T&gt;, but C++ uses std::unordered_set for the same job. Here is a name mapping and a short example that compares the two languages.</description><category>Hash Sets</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Exactly Is a HashSet?</title><link>https://cppfromscratch.site/hashset-in-c/what-exactly-is-a-hashset/</link><guid isPermaLink="true">https://cppfromscratch.site/hashset-in-c/what-exactly-is-a-hashset/</guid><description>A HashSet is a collection of unique items found by hashing. Learn how hashing works and how std::unordered_set stores items in C++, with a small example.</description><category>Hash Sets</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Which Is Faster, HashSet or HashMap?</title><link>https://cppfromscratch.site/hashset-in-c/which-is-faster-hashset-or-hashmap/</link><guid isPermaLink="true">https://cppfromscratch.site/hashset-in-c/which-is-faster-hashset-or-hashmap/</guid><description>Neither HashSet nor HashMap is faster in general. A set stores only keys and a map stores key-value pairs, so the right pick depends on your data.</description><category>Hash Sets</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Why Use HashSet Instead of List in C#?</title><link>https://cppfromscratch.site/hashset-in-c/why-use-hashset-instead-of-list-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/hashset-in-c/why-use-hashset-instead-of-list-in-c/</guid><description>Use a hash set when you need fast membership checks and unique items; use a list when order, indexing or duplicates matter. Compare C# and C++ examples.</description><category>Hash Sets</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Sets in C++: How std::set Works</title><link>https://cppfromscratch.site/sets-in-c/sets-in-c-how-std-set-works/</link><guid isPermaLink="true">https://cppfromscratch.site/sets-in-c/sets-in-c-how-std-set-works/</guid><description>Learn how C++ std::set stores unique values in sorted order, with examples of insert, find, erase, custom comparators, and how it differs from hash sets.</description><category>std::set</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is set() the Same as {} in Python?</title><link>https://cppfromscratch.site/sets-in-c/is-set-the-same-as-in-python/</link><guid isPermaLink="true">https://cppfromscratch.site/sets-in-c/is-set-the-same-as-in-python/</guid><description>No. In Python, set() makes an empty set while {} makes an empty dict. Learn how to tell them apart, create sets correctly and avoid the common mistakes.</description><category>std::set</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Tuples in C++ With std::tuple</title><link>https://cppfromscratch.site/tuple-in-c/tuples-in-c-with-std-tuple/</link><guid isPermaLink="true">https://cppfromscratch.site/tuple-in-c/tuples-in-c-with-std-tuple/</guid><description>Learn how std::tuple groups a fixed number of values of mixed types in C++. Covers creating tuples, reading them with std::get and structured bindings.</description><category>Tuples</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is a Tuple {} or () in Python?</title><link>https://cppfromscratch.site/tuple-in-c/is-a-tuple-or-in-python/</link><guid isPermaLink="true">https://cppfromscratch.site/tuple-in-c/is-a-tuple-or-in-python/</guid><description>() makes an empty tuple in Python, while {} makes an empty dictionary. Learn why the comma matters and how set() differs, with short examples.</description><category>Tuples</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Tuple and What Is a List?</title><link>https://cppfromscratch.site/tuple-in-c/what-is-a-tuple-and-what-is-a/</link><guid isPermaLink="true">https://cppfromscratch.site/tuple-in-c/what-is-a-tuple-and-what-is-a/</guid><description>In Python, lists can change but tuples cannot. Compare how each is written, when to use each, and how std::tuple differs from std::vector in C++.</description><category>Tuples</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Tuple in Python? With an Example Program</title><link>https://cppfromscratch.site/tuple-in-c/what-is-a-tuple-in-python-with-an/</link><guid isPermaLink="true">https://cppfromscratch.site/tuple-in-c/what-is-a-tuple-in-python-with-an/</guid><description>A tuple in Python is an ordered, immutable group of values. This example program creates, unpacks and indexes one, then shows the C++ version.</description><category>Tuples</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is the Definition of a Tuple?</title><link>https://cppfromscratch.site/tuple-in-c/what-is-the-definition-of-a-tuple/</link><guid isPermaLink="true">https://cppfromscratch.site/tuple-in-c/what-is-the-definition-of-a-tuple/</guid><description>A tuple is an ordered, finite sequence of values. Learn what the definition means in math and programming, with Python and C++ examples for beginners.</description><category>Tuples</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>std::optional in C++</title><link>https://cppfromscratch.site/c-optional/std-optional-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-optional/std-optional-in-c/</guid><description>std::optional in C++17 holds either a value or nothing. Learn how to check it, read it safely with value_or and return it from a function, with examples.</description><category>std::optional</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Are 10 Examples of C Programs?</title><link>https://cppfromscratch.site/c-optional/what-are-10-examples-of-c-programs/</link><guid isPermaLink="true">https://cppfromscratch.site/c-optional/what-are-10-examples-of-c-programs/</guid><description>Ten short, complete C programs with their output: Hello World, adding two numbers, even or odd, factorial, Fibonacci, prime check and palindrome.</description><category>std::optional</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Return an Array in C++</title><link>https://cppfromscratch.site/how-to-return-an-array-in-c/how-to-return-an-array-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-return-an-array-in-c/how-to-return-an-array-in-c/</guid><description>Learn how to return an array from a C++ function. Compare std::vector, std::array, unique_ptr, and struct wrappers, and avoid returning a dangling pointer.</description><category>Returning Arrays</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Are char[] and char * the Same in C?</title><link>https://cppfromscratch.site/how-to-return-an-array-in-c/are-char-and-char-the-same-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-return-an-array-in-c/are-char-and-char-the-same-in-c/</guid><description>No, char[] and char * are different types in C. An array holds its own elements, while a pointer only stores an address. Here&apos;s what changes in practice.</description><category>Returning Arrays</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Can I Pass an Array to a Function in C?</title><link>https://cppfromscratch.site/how-to-return-an-array-in-c/can-i-pass-an-array-to-a-function/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-return-an-array-in-c/can-i-pass-an-array-to-a-function/</guid><description>Yes. In C, an array is passed as a pointer to its first element, so you must pass its length too. This guide shows a working example and the common mistakes.</description><category>Returning Arrays</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does return {} Do in C++?</title><link>https://cppfromscratch.site/how-to-return-an-array-in-c/what-does-return-do-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-return-an-array-in-c/what-does-return-do-in-c/</guid><description>return {} sends back a value-initialized object of the return type: 0 for int, an empty vector or string, nullptr for pointers, and zeros for std::array.</description><category>Returning Arrays</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Pass an Array to a Function in C++</title><link>https://cppfromscratch.site/how-to-pass-an-array-to-a-function/how-to-pass-an-array-to-a-function/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-pass-an-array-to-a-function/how-to-pass-an-array-to-a-function/</guid><description>Learn how to pass an array to a function in C++, including the size parameter, const, modifying elements, and fixed-size array references, with examples.</description><category>Passing Arrays</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Write a C Program Using an Array</title><link>https://cppfromscratch.site/how-to-pass-an-array-to-a-function/how-to-write-a-c-program-using-an/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-pass-an-array-to-a-function/how-to-write-a-c-program-using-an/</guid><description>How to write a C program that uses an array: declare it, fill it, loop over its elements, and print results. A complete example you can compile and run.</description><category>Passing Arrays</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is Actually Passed When an Array Is Passed to a Function?</title><link>https://cppfromscratch.site/how-to-pass-an-array-to-a-function/what-is-actually-passed-when-an-array-is/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-pass-an-array-to-a-function/what-is-actually-passed-when-an-array-is/</guid><description>Passing an array to a function sends the base address of its first element, not a copy of every element. Here is what that means in C and C++.</description><category>Passing Arrays</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Arrays of Structs in C++</title><link>https://cppfromscratch.site/array-of-structs-in-c/arrays-of-structs-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/array-of-structs-in-c/arrays-of-structs-in-c/</guid><description>Learn to declare, initialize, loop over, pass, and sort arrays of structs in C++, with clear code examples and the common mistakes beginners make.</description><category>Arrays of Structs</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Struct vs. Array: What&apos;s the Difference?</title><link>https://cppfromscratch.site/array-of-structs-in-c/struct-vs-array-what-s-the-difference/</link><guid isPermaLink="true">https://cppfromscratch.site/array-of-structs-in-c/struct-vs-array-what-s-the-difference/</guid><description>A struct groups named members that can differ in type, while an array holds numbered elements that all share one type. See when to use each in C++.</description><category>Arrays of Structs</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is an Array of Structures in C?</title><link>https://cppfromscratch.site/array-of-structs-in-c/what-is-an-array-of-structures-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/array-of-structs-in-c/what-is-an-array-of-structures-in-c/</guid><description>An array of structures in C stores several structs of one type side by side in memory. Here is how to declare, fill, and loop over one, with examples.</description><category>Arrays of Structs</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Generate Random Numbers in C++</title><link>https://cppfromscratch.site/how-to-generate-random-numbers-in-c/how-to-generate-random-numbers-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-generate-random-numbers-in-c/how-to-generate-random-numbers-in-c/</guid><description>Generate random numbers in C++ with the random header, std::mt19937 and distributions. Examples cover ranges, decimals and shuffling, plus the older rand().</description><category>Random Numbers</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How Can We Generate Random Numbers in Code?</title><link>https://cppfromscratch.site/how-to-generate-random-numbers-in-c/how-can-we-generate-random-numbers-in-code/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-generate-random-numbers-in-c/how-can-we-generate-random-numbers-in-code/</guid><description>Many programs use a pseudo-random generator with a seed, while secure values come from the operating system. Here is how that choice works, with a C++ example.</description><category>Random Numbers</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Use rand()</title><link>https://cppfromscratch.site/how-to-generate-random-numbers-in-c/how-to-use-rand/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-generate-random-numbers-in-c/how-to-use-rand/</guid><description>rand() returns an int from 0 to RAND_MAX. Learn how to call it, limit the range, get decimals and build a dice roller, and see its main limits.</description><category>Random Numbers</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Use rand() and srand() in C</title><link>https://cppfromscratch.site/how-to-generate-random-numbers-in-c/how-to-use-rand-and-srand-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-generate-random-numbers-in-c/how-to-use-rand-and-srand-in-c/</guid><description>Seed rand() with srand() once, at the start of your program, using the current time or a fixed value. Covers the C and C++ code and the loop mistake to avoid.</description><category>Random Numbers</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is rand() Actually Random?</title><link>https://cppfromscratch.site/how-to-generate-random-numbers-in-c/is-rand-actually-random/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-generate-random-numbers-in-c/is-rand-actually-random/</guid><description>No. rand() is pseudo-random: each number follows from the state before it, so a given seed gives the same sequence. Here is what that means for code.</description><category>Random Numbers</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>NULL vs nullptr in C++</title><link>https://cppfromscratch.site/c-null-vs-nullptr/null-vs-nullptr-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-null-vs-nullptr/null-vs-nullptr-in-c/</guid><description>NULL is an older macro, usually defined as 0. nullptr, added in C++11, is a typed null pointer that avoids overload surprises. Here&apos;s how to choose.</description><category>NULL vs nullptr</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is 0 == NULL in C?</title><link>https://cppfromscratch.site/c-null-vs-nullptr/is-0-null-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-null-vs-nullptr/is-0-null-in-c/</guid><description>In C, 0 == NULL is true because both are null pointer constants. Here is why the comparison works, what NULL expands to, and what to watch for.</description><category>NULL vs nullptr</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Happens When You Delete a nullptr in C++?</title><link>https://cppfromscratch.site/c-null-vs-nullptr/what-happens-when-you-delete-a-nullptr-in/</link><guid isPermaLink="true">https://cppfromscratch.site/c-null-vs-nullptr/what-happens-when-you-delete-a-nullptr-in/</guid><description>Deleting a nullptr in C++ does nothing and is safe, so no if check is needed. Learn why delete ignores null pointers and why deleting twice is a bug.</description><category>NULL vs nullptr</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Null Pointer in C?</title><link>https://cppfromscratch.site/c-null-vs-nullptr/what-is-a-null-pointer-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-null-vs-nullptr/what-is-a-null-pointer-in-c/</guid><description>A null pointer in C points to no object or function. Learn how NULL and 0 create one, how to test for it, and why dereferencing it is undefined behavior.</description><category>NULL vs nullptr</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Why Use NULL Instead of 0?</title><link>https://cppfromscratch.site/c-null-vs-nullptr/why-use-null-instead-of-0/</link><guid isPermaLink="true">https://cppfromscratch.site/c-null-vs-nullptr/why-use-null-instead-of-0/</guid><description>NULL and 0 can both mark a null pointer, but NULL shows the intent. A plain 0 can cause trouble in variadic calls and with C++ overloads.</description><category>NULL vs nullptr</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Heap vs Stack Memory in C++</title><link>https://cppfromscratch.site/c-heap-vs-stack/heap-vs-stack-memory-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-heap-vs-stack/heap-vs-stack-memory-in-c/</guid><description>Learn how heap and stack memory differ in C++: how each is allocated, how long data lives, the speed and size trade-offs, and common mistakes, with examples.</description><category>Heap vs Stack</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is a Heap a FIFO?</title><link>https://cppfromscratch.site/c-heap-vs-stack/is-a-heap-a-fifo/</link><guid isPermaLink="true">https://cppfromscratch.site/c-heap-vs-stack/is-a-heap-a-fifo/</guid><description>No, a heap is not a FIFO. Heap memory has no fixed order, and a binary heap returns items by priority. Here is how the two differ, with C++ examples.</description><category>Heap vs Stack</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Is the Heap the Same as the Stack?</title><link>https://cppfromscratch.site/c-heap-vs-stack/is-the-heap-the-same-as-the-stack/</link><guid isPermaLink="true">https://cppfromscratch.site/c-heap-vs-stack/is-the-heap-the-same-as-the-stack/</guid><description>No, the heap and the stack are separate memory areas with different rules. The stack is automatic and last in, first out, while the heap is managed by you.</description><category>Heap vs Stack</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Stack in C? Explained With an Example</title><link>https://cppfromscratch.site/c-heap-vs-stack/what-is-a-stack-in-c-explained-with/</link><guid isPermaLink="true">https://cppfromscratch.site/c-heap-vs-stack/what-is-a-stack-in-c-explained-with/</guid><description>The stack in C holds local variables and function call data. Each call gets a frame that is removed when the function returns. Here is a short C example.</description><category>Heap vs Stack</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Why Is It Called Heap Memory?</title><link>https://cppfromscratch.site/c-heap-vs-stack/why-is-it-called-heap-memory/</link><guid isPermaLink="true">https://cppfromscratch.site/c-heap-vs-stack/why-is-it-called-heap-memory/</guid><description>Heap memory is usually explained by its loose, unordered layout, unlike the stack&apos;s last-in, first-out rule. Here is that explanation and its limits.</description><category>Heap vs Stack</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a Segmentation Fault in C++?</title><link>https://cppfromscratch.site/what-is-segmentation-fault-in-c/what-is-a-segmentation-fault-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/what-is-segmentation-fault-in-c/what-is-a-segmentation-fault-in-c/</guid><description>A segmentation fault is a crash that occurs when a C++ program accesses memory it isn&apos;t allowed to use. Learn the causes and how to find the bug.</description><category>Segmentation Faults</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Can Cause a Seg Fault?</title><link>https://cppfromscratch.site/what-is-segmentation-fault-in-c/what-can-cause-a-seg-fault/</link><guid isPermaLink="true">https://cppfromscratch.site/what-is-segmentation-fault-in-c/what-can-cause-a-seg-fault/</guid><description>Most segfaults come from a few coding mistakes, such as null pointers, out-of-bounds indexing and runaway recursion. Learn the usual suspects.</description><category>Segmentation Faults</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is a SIGSEGV Segmentation Fault?</title><link>https://cppfromscratch.site/what-is-segmentation-fault-in-c/what-is-a-sigsegv-segmentation-fault/</link><guid isPermaLink="true">https://cppfromscratch.site/what-is-segmentation-fault-in-c/what-is-a-sigsegv-segmentation-fault/</guid><description>SIGSEGV is the signal Linux and other POSIX systems send when a program makes an invalid memory access. Learn how it works and how to catch it.</description><category>Segmentation Faults</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Is Memory Segmentation? Explained With an Example</title><link>https://cppfromscratch.site/what-is-segmentation-fault-in-c/what-is-memory-segmentation-explained-with-an-example/</link><guid isPermaLink="true">https://cppfromscratch.site/what-is-segmentation-fault-in-c/what-is-memory-segmentation-explained-with-an-example/</guid><description>Memory segmentation divides a program&apos;s memory into regions such as code, data, heap and stack. See how each region works in C++, with a short example.</description><category>Segmentation Faults</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Triggers a Segmentation Fault?</title><link>https://cppfromscratch.site/what-is-segmentation-fault-in-c/what-triggers-a-segmentation-fault/</link><guid isPermaLink="true">https://cppfromscratch.site/what-is-segmentation-fault-in-c/what-triggers-a-segmentation-fault/</guid><description>A segmentation fault is triggered when the CPU or OS rejects a memory access, such as an unmapped address or a write to read-only memory. Learn the checks.</description><category>Segmentation Faults</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Fixing the Expression Must Be a Modifiable Lvalue Error in C++</title><link>https://cppfromscratch.site/c-expression-must-be-a-modifiable-lvalue/fixing-the-expression-must-be-a-modifiable-lvalue/</link><guid isPermaLink="true">https://cppfromscratch.site/c-expression-must-be-a-modifiable-lvalue/fixing-the-expression-must-be-a-modifiable-lvalue/</guid><description>Learn what the expression must be a modifiable lvalue error means in C++, the usual causes such as constants, literals and arrays, and how to fix each one.</description><category>Modifiable Lvalue Error</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does char* Do in C++?</title><link>https://cppfromscratch.site/c-expression-must-be-a-modifiable-lvalue/what-does-char-do-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/c-expression-must-be-a-modifiable-lvalue/what-does-char-do-in-c/</guid><description>char* is a pointer to a char: a variable that stores a memory address. Learn how to declare it, dereference it and use it with C-style strings.</description><category>Modifiable Lvalue Error</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Does lvalue Mean?</title><link>https://cppfromscratch.site/c-expression-must-be-a-modifiable-lvalue/what-does-lvalue-mean/</link><guid isPermaLink="true">https://cppfromscratch.site/c-expression-must-be-a-modifiable-lvalue/what-does-lvalue-mean/</guid><description>An lvalue is an expression that names an object with a location in memory, like a variable. Learn how it differs from an rvalue and why assignment needs one.</description><category>Modifiable Lvalue Error</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Use Valgrind With C++</title><link>https://cppfromscratch.site/how-to-use-valgrind-in-c/how-to-use-valgrind-with-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-use-valgrind-in-c/how-to-use-valgrind-with-c/</guid><description>Learn how to install Valgrind, build a C++ program for it, run Memcheck, and read leak and memory error reports, with examples you can try yourself.</description><category>Valgrind and Memory Leaks</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Does Valgrind Work for C++?</title><link>https://cppfromscratch.site/how-to-use-valgrind-in-c/does-valgrind-work-for-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-use-valgrind-in-c/does-valgrind-work-for-c/</guid><description>Yes, Valgrind works with C++ on Linux systems. Learn what it checks in C++ code, how it reports new and delete mismatches, and where it falls short.</description><category>Valgrind and Memory Leaks</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>How to Compile a C Program for GDB</title><link>https://cppfromscratch.site/how-to-use-valgrind-in-c/how-to-compile-a-c-program-for-gdb/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-use-valgrind-in-c/how-to-compile-a-c-program-for-gdb/</guid><description>Compile a C program with -g and -O0 so GDB shows line numbers and variables, then start a session with gdb ./program and step through your code.</description><category>Valgrind and Memory Leaks</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What Tools Can I Use to Detect Memory Leaks?</title><link>https://cppfromscratch.site/how-to-use-valgrind-in-c/what-tools-can-i-use-to-detect-memory/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-use-valgrind-in-c/what-tools-can-i-use-to-detect-memory/</guid><description>Compare Valgrind, AddressSanitizer, LeakSanitizer, Dr. Memory and Visual Studio&apos;s debug heap for finding memory leaks in C++, and when to use each.</description><category>Valgrind and Memory Leaks</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item><item><title>When Should I Use malloc in C?</title><link>https://cppfromscratch.site/how-to-use-valgrind-in-c/when-should-i-use-malloc-in-c/</link><guid isPermaLink="true">https://cppfromscratch.site/how-to-use-valgrind-in-c/when-should-i-use-malloc-in-c/</guid><description>Learn when malloc still makes sense in C++ code, how to cast its result, how to pair it with free, and how Valgrind reports mismatched allocations.</description><category>Valgrind and Memory Leaks</category><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate></item></channel></rss>