Static in C++

Static variables/functions, static in the context of class/struct

Read more

Virtual destructor

Virtual destructor is used to prevent memory leak in the context of polymorphism.

Read more

Virtual Function

Virtual function, pure virtual function, abstract class

Read more

constexpr specifier

The constexpr specifier declares that it is possible to evaluate the value of the function or variable at compile time.

Read more

How to interpret complex C++ variable declarations

From int* p to int (*(*p)[])()

C++ variable definition can be very complex when *, & and nested brackets exist. This tutorial lists some examples from easy to advanced level to help you walk you through each of them and understand how we should interpret them in a more systematic way.

Read more