9.10 — Pass by address (part 2)

This lesson is a continuation of . Pass by address for “optional” arguments One of the more common uses for pass by address is to allow a function to accept an “optional” argument. This is easier to illustrate by example than to describe: #include <iostream> void greet(std::string *name=nullptr) { std::cout …

B.4 — Introduction to C++20

What is C++20? In February of 2020, the ISO (International Organization for Standardization) approved a new version of C++, called C++20. C++20 contains the most changes to the language since C++11. New improvements in C++20 For your interest, here’s a list of the major improvements that C++20 adds. Note that …