C++C++11C++14C++17C++20Introduction to C++Learn C++

What Are The Macros For The Integer Constants In Modern C++

In C++ programming, there are macros for the fixed-width integer type that allow you to obtain minimum and maximum possible values. In this post, we explain these macros for integer constants in modern C++. What are the macros for minimum signed integer constants in modern C++? Here are the macros for minimum signed integer constants in general form in C++: Integer Constant…
Read more
CC++C++11C++14C++17C++20Introduction to C++Learn C++

What is _t (underscore-t) in C++? Why some types followed by _t?

The C++ Programming Language is huge, it may have millions and millions of keywords, and commands with every new library or feature addition. In programming, it is hard to memorize all of these keywords. Sometimes when we are using some keywords, we may have some questions about them, because we want to learn and memorize them logically. If you are using C or C++, we may have these questions…
Read more
C++C++11C++14C++17Introduction to C++Language FeatureLearn C++

What Are Generalized Constant Expressions (constexpr) In C++?

C++ is really awesome programming language that has many options to use variables in a way which can make your C++ App use less memory and app size. In this post, we explain what are a constant, a constant expression and generalized constant expressions in modern C++. What is the const constant keyword in modern C++? Let’s remember that, in C++ there are two ways to define constants.
Read more
C++C++11C++14C++17Introduction to C++Learn C++

How To Learn initializer_list (std::initializer_list) In Modern C++

C++ has some really great features for being able to define different types of variables and structure. One of the most used and very useful arrays in C++ is the std::vector. If you know arrays in C and C++, then containers are a modern and very flexible form of arrays in C++. If you want to initialize containers like vector, list, map, etc. you need use std::initializer_list. It can be used with…
Read more