Classes and Design

Template Metaprogramming

How templates run code at compile time and how this differs from the C preprocessor.

Are C and C++ the Same?

C and C++ are related languages with separate standards. Learn how they differ in syntax, keywords, the standard library and how code is compiled.

3 min read

What Are __FILE__ and __LINE__ in C?

__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++.

2 min read

What Is a Preprocessor in C?

The preprocessor runs before compilation, handling #include, #define and conditional lines. Learn how it works, with macro examples and common pitfalls.

3 min read

What Is C Programming?

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++.

2 min read

Related topics

More in classes and design