Learn C++

C++ Global Variable with Examples

Global variables are described at the top of a program, outside of all functions. The value of a global variable remains constant throughout the execution of the program. Every function that is declared in the program, can access the global variable. #include<iostream> using namespace std; //global variable int a = 5; void display() { cout<<a<<endl; …

C++ Global Variable with Examples Read More »

C++ Variables

In this section we will be studying the concepts of variables in C++ programming language. We hope you guys must have heard about variables in C or somewhere else. Though it is not a very complex topic to discuss in detail but let’s see what we have to say for this. C++ Variables We can …

C++ Variables Read More »

C++ Tokens – Keywords, Constants, Identifiers, Strings, Operators & Special Symbols

Here you will learn about C++ tokens, keywords, constants, identifiers, strings, operators and special symbols. What are Tokens? In simple words, we can say that tokens are the smallest component pertaining to any program that make sense to the compiler, i.e. compiler can very easily understand that. We can classify the tokens into six different …

C++ Tokens – Keywords, Constants, Identifiers, Strings, Operators & Special Symbols Read More »

Installing C++ Compiler and IDE

Computer can’t directly understand the program that we write in C++ language. Compiler converts the program into machine language that is understand by the computer. As we already know C++ is a compiled language. This means that every source file needs to be converted into an intermediate code called the object code with the help …

Installing C++ Compiler and IDE Read More »