Bjarne Stroustrup at Bell Labs initially developed C++ during the early 1980’s. It was designed to support the features of C such as efficiency and low-level support for system level coding. Initially, it was …
Read More »Cplusplus
Why C++?
Why C++? C++ is an advanced, powerful Computer Programming language, yet it is relatively easy to introduce and learn. it is most modern, high-performance computer programs are written using C++. C++ knows about objects and …
Read More »First Program In C++ Programming Language Hello Word
#include <iostream.h> using namespace std; int main() { cout << ” Hello World “; } <<Hello>> Line 1: #include <iostream.h> The C++ compiler runs a program called the C++ preprocessor. The preprocessor is expert to …
Read More »What is the Tokens In C++ Programming Language?
The smallest unit in the program is called a token. C++ has the following tokens: C++ Character Set Character set is a set of valid characters that a language can recognize. A character represents any …
Read More »What is the Literals & constant In C++ In Programming language?
Literals are data items that never change their value during a program run. C++ allows several kind of literal: (a) Integer constants Integer constants are the whole numbers without any fractional part. An integer constant …
Read More »What is the Variables In C++ or any Programming language?
Variable represents named storage location, whose values can be manipulated during program run. variables are called symbolic variables because they are named. There are two values associated with a symbolic variable: Rvalue, its data value …
Read More »Declaration of Variables In C++
To declare a variable this format is used Syntax: data type name; To declare a signed/unsigned variable place these modifiers before the data type. Example: signed int a; unsigned short b; …
Read More »Data Types In C++
Data can be of many type e.g. character, integer, real, string etc. Any thing enclosed in single quotes represent character data. Data type are means to identify the type of data and associated operation of …
Read More »What is the Pointers In C++ or any Programming Language?
A pointer is a variable that holds a memory address. This address is usually the location the location of another variable in memory. If one variable contains the address of another variable, is said to …
Read More »Constants In C++
The keyword const can be added to the declaration of an object to make that object a constant rather than variable. The general form of constant declaration is as follows: Syntax: const int …
Read More »Introduction of Control Structure In C++
Statements are the instructions given to the computer to perform any kind of action, be it data movements, be it making decisions, or be in repeating action. Various statements provided in C++ : …
Read More »Precedence of Operators In C++
Writing complex expressions with more than a one operands, we may have a number of misgivings about which operand is evaluated foremost and which afterward. For example, in this appearance: i = 4 …
Read More »Expression In C++
An expression is composed of one or more operations. The objects of the operations are referred to as operands. An expression in C++ is any valid combination of operators, constants, and variables. Type of …
Read More »Introduction Of Function In C++
Now that you should have learned about variables, loops, and if statements it is time to learn aboutfunctions. You should have an idea of their uses. Cout is an example of a function. In …
Read More »Function Declaration & Prototyping In C++
Functions that a programmer writes will generally require a prototype. Just like an blueprint, the prototype tells the compiler what the function will return, what the function will be called, as well as what arguments …
Read More »