Start here · Essential guide
std::optional in C++
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.
Strings, Containers and Memory
How std::optional represents a value that may be missing.
Start here · Essential guide
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.
Ten short, complete C programs with their output: Hello World, adding two numbers, even or odd, factorial, Fibonacci, prime check and palindrome.
Related topics