This lesson focuses on expressions consisting of mixed data types. The C++ compiler has a way to deal with expressions that contains variables or constants...

There is  a special operator called  conditional operator in  C++ programming language, denoted by ?: symbol. It is way different from the other operators...

Previously we had seen the various arithmetic operators in C++. Now let us have a look at two new operators called the increment (++) and decrement (-...

Now that we know the various data types used in C++ language, let us see how we can modify these data types to provide more versatility to our code. We...

A variable is an entity whose value can vary in a program. But sometimes, we need to fix the value of a variable for some purpose. For example, to calculate...

We had given an introduction to constants when we had talked about the different types of tokens in C++. Now let us study constants in detail and see how...

In the previous post, we had seen what are the various built-in data types in C++. We are now ready to use them to create variables in our programs. First...

Data types in C++ are keywords that are used to specify the type of the data we use in our C++ programs. There are many data-types available in C++. They...

In the previous post, we had learned to write a basic  C++ program. We should now understand how a program works and how the computer handles it. Let...

In the previous post, we had shown how basic input/output is performed in C++. Along with input/output operators, C++ provides a facility to control how...