In the previous topic, we have discussed data types in C++ in detail. Today we will discuss variables and constants in C++.
A named memory location or memory cell is called a variable. The program's input data and its results are stored in variables during execution. During the execution of the program, the value of a variable can be changed but its name can not be changed.
Variables are created in random access memory. As we know that RAM is a temporary memory so data stored in it is also temporary. It can only be used during execution. When the program ends, the data stored in the variable is automatically removed.
In C++, all the variables are declared first:
Name of variable: an identifier that represents a memory location.
Address of v ...
In the previous section, we have had an overview of a detailed Introduction to C++. Today, we will have a look at the data types in C++. It's our 2nd tutorial in the C++ programming language series.
In the previous tutorial, we have seen the basics of C++ and have also discussed a small code. We have discussed various programming terms in the previous tutorial and from now on, we are going to discuss those terms in detail. So, today's lecture is on Data Types in C++, let's get started:
C++ Data Types
A data type defines the type and the set of operations that can be performed on the data. Various types of data are manipulated by the computer. The data is given as an input to the program. According to the program's set of instructions, data is pr ...
Hello friends, I hope you all are doing great. In today's tutorial, I am going to give you a detailed introduction to the C++ Programming language. In cross-platform programming languages, C++ is the most popular that can be used to work on low and high-level applications. Bjarne Stroustrup was the founder of C++. He modified C language to develop C++ language. Control over system resources and memory can be attained by using C++. In 2011, 2014, and 2017 it was modified to C++11, C++14, and C++17. C++ is a middle-level language. It is advantageous to both programming languages low-level (drivers, kernels) and higher-level applications (games, GUI, desktop apps etc.).
Uses of C++
C++ is one of the world's most famous programming languages. It is u ...
Hello friends, hope you all are fine and enjoying your lives. Today, I am going to show you How to use comments in C++. In the previous tutorials, we first have a look at Introduction to C++ in which we have discussed a simple c++ program. After that we have discussed How to use Escape Sequence in C++, which is also essential because escape sequence is a very simple concept but is used quite a lot on C++ projects os you must have its knowledge.
Today, we are gonna discuss Comments in C++ i.e. how to use Comments in C++ and why to use Comments in C++. Just like escape sequence, comments in C++ is also very basic concept but its really important and a programmer must know How to use Comments because without it the code becomes really difficult and i ...
In today's tutorials, we are going to have a look at escape sequence in C++. In our previous tutorial, Introduction to C++ we have designed a small Hello World program and if you haven't studied it yet then you should first check that one out as I am gonna take it further from there.
In that tutorial, we have designed a code which prints the Hello world on the output screen. The code used for printing it on the output screen is as follows:
How to use Escape Sequence in C++ ??
Now, suppose if I want to print out "Hello World" , instead of Hello World.
In simple words, I wanna add "" these symbols as well on each side of Hello World.
But if you add them in the above program then it will generate er ...
Hello friends, hope you all are fine and having fun with your lives. Today, I am going to start a new series of tutorials on C++ Programming. and here's my first tutorial in this series which is Introduction to C++. I am gonna share a lot of tutorials in this series in future, in which I am gonna explain all about C++. In the initials tutorials, we will cover the basics of C++ Programming and later on we will also cover the pro concepts of C++ Programming.
I am planning on posting around 20 to 30 tutorials in this C++ Programming series, and I am quite sure that it will cover all about C++ and if you are a new learner then it will help you quite a lot.. I have started this series on a request of one of my readers. He suggested me this idea and I l ...