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

What Is Static Assertion And How To Use static_assert In C++?

In C++, as with any programming language, it’s important to ensure that the logic of your program is correct even when the compiler thinks the syntax is valid. This is true no matter how good your C++ dev tool may be. Logical errors – where something in the program code should be true or false, can be very difficult to spot and track down because the code looks correct but the flaw in…
Read more
C++C++11C++14C++17C++20Introduction to C++Learn C++Syntax

Everything You Need To Know About Strongly Typed Enums In Modern C++

Variable declaration is important in programming and there is an enumeration method that allows you to numerate/count variables easily. In C++, enumeration is very important and widely used in different syntaxes. Enumeration in C++ can be done with the enum keyword which can be used to create unscoped and scoped enumerations. C++11 and above has modern enumeration methods that can be easily used…
Read more
C++C++11C++14C++17C++20Introduction to C++Learn C++Syntax

Learn What A Null Pointer Constant (nullptr) Is In Modern C++

C++ is an amazing programming language. Variables and memory usage are important in programming, and how we handle these are improved in every C++ standard. One of the great features is null pointer constants in modern C++ which was introduced with the C++11 standard. In this post, we explain what a null pointer constant (nullptr ) is with very simple examples. You can learn C++ and follow along…
Read more
C++C++11C++14C++17C++20Learn C++SyntaxTemplates

What Are The Type Template Parameters In C++

Template feature in C++ is one of the great features of modern C++. One of the great features of modern C++ is the ability to define templates. Templates are one of the most important techniques for you to learn, since it’s really only with knowledge of templates that you can claim to understand C++. So much of C++, including the standard library that you use every day as a C++…
Read more