CC++C++11C++14C++17Learn C++

How To Use Base-8 (Octal) Numbers In Modern C++?

In general, in nearly all programming languages, including Modern C++, we use base-10 numbers, while our computer hardware uses the binary base-2 system (bits). I personally believe that base-10 is because we typically have 10 fingers and since we learn to counting on our fingers we use base-10 primarily. However, due to the way binary works it is sometimes convenient to use base-8 system octal…
Read more
C++C++11C++14C++17C++20

What Is The '>>' Right-Angle Bracket Support In C++?

C++11 brings a lot of improvements over C++98. In C++98, two consecutive right-angle brackets (>>) give an error, and these constructions are treated according to the C++11 standard which means CLANG compilers no longer generate an error about right angle brackets. In this post, we explain this and how to solve the right-angle bracket problem in C++. What is the right-angle bracket problem in…
Read more
C++C++11C++14C++17C++20Learn C++

What Is Defaulted Function or Method In Modern C++ Now?

Modern C++ is really amazing with a lot of great features of programming. One of the features of Modern C++ is a Defaulted Function or in another term Defaulted Method of classes that is a function that contains =default; in its prototype. Defaulted functions are a feature of C++11 and above. In this post, we explain what is a defaulted function or method in modern C++. What is defaulted…
Read more
C++C++11C++14C++17C++20

Where To Find The C++ Standards In 2023?

C++ is a well-established programming language that is supported by a big community for many different computing hardware platforms. The language has a set of standards generally named after the approximate year the standard was adopted, such as C++98, C++11, C++14, C++17…
C++C++11C++14C++17C++20Introduction to C++

What Are Fixed Width Integer Types In Modern C++

In C++ development, integer variables can be decimal (base 10), octal (base 8) or hexadecimal (base 16). In addition to int, short int, long int, and long long int, there are fixed width integer types. Fixed-width integers are defined types with a fixed number of bits. In this post we will list them. What are fixed width integer types in modern C++? In addition to standard types in C++…
Read more