Operators are the core concepts of any programming language as none of the programming languages can proceed and even exist without the concept of operators. In real life, if we take an example, explaining the Operators in C++ is like we are cooking spicy food. Still, without the spices, we can’t cook delicious food; it’s…
In c++, we all have written many programs till now. But do you know that each part of that program separately makes a specific type of statement, which collectively comes under the header of Statements. Now, let us dive into learning about this part of the ocean.
What are Statements in C++?
A statement is…
New-line character is a technique used to insert a new line into the output displayed to the user. It is one of the most-used techniques to get the output to the next line. Most of the time, we don't simply want to print (output) everything on the same line, though we need separation. It helps…
In this blog, we will learn to use the standard cout object to display output to the user and the standard cin object to take input from the user, with the help of examples. Let's start with the header files to gain more understanding of cout and cin.
Header files
C++ header files are the standard interface for various…
At one time, all of us were tired of maths, but it has some fundamental concepts still in use, and everyone might know about it: Constants. Like in our life, we have some constants, i.e., whose place no one can take or which can not be changed, and in mathematical terms, its value can not…
You must've gone through various basics of C++, from basic structures to keywords, and you must've even covered the identifiers till now. But this is the very point where the real power of C++ unveils, and it's the core backbone of any programming language because, without it, the programmer cannot even think of programming. They…
In C++, the main() function is a very important function. It is responsible for starting a program, controlling the flow through the program, and providing a place in the program for error reporting.
What is Main() Function?
The main() function is the central entry point to a C++ program. It has two main jobs. First,…
Identifiers in C++ are a way of naming things. They are names for variables, functions, classes, and more. The number of unique identifiers is essential because it limits the scope of a variable, for example. Identifiers follow specific rules and provide some protection from mistakes.
In the previous blog, "keywords in c++," we studied the…
Keywords in C++ are the collection of reserved words and predefined identifiers. These are written in lower cases and have a special meaning defined by the compiler. There are 95 keywords in the C++ programming language, of which around 30 are unavailable in the C language. These are always used for a particular purpose in a program,…
A namespace is a group of related terms, classes, or attributes that exist within your project. Usually, namespaces have some sort of contextual relevance that influences their structure.
When we start writing any program, we add a pre-processor directive, but it does not end here. Our basics for writing a code include much more than…