Cplusplus

A Brief History Of C++ Programming Language | Learn C++ Programming

  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 called “C with classes” however in 1983 the name was changed to C++ because it was an extends C by …

A Brief History Of C++ Programming Language | Learn C++ Programming Read More »

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 therefore can teach sound programming techniques from the very beginning. C++ is a compiled computer language. This means the original …

Why C++? 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 must have at least one digit that must contain any decimal point. C++ allow 3 type of integer constants: Decimal( …

What is the Literals & constant In C++ In Programming language? 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 stored at some location in the memory. Lvalue, its location value that is the address in the memory at which …

What is the Variables In C++ or any Programming language? 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;   To declare a signed/unsigned variable place these modifiers before the data type.   Example:   signed int a; unsigned …

Declaration of Variables In C++ 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 handling it. C++ data types are of two types: Fundamental Data type Derived Data Type Fundamental Data type Integer (int): …

Data Types In C++ 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 a=50;   Constants can be classified based on their data type.   The various types are-   Numeric type constants …

Constants In C++ 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 expressions   Arithmetic Expression   Arithmetic expression can either be integer expression or real expression, some times a mixed expression …

Expression In C++ 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 general, functions perform a number of pre-defined commands to accomplish something productive.   Function is a group of statements within …

Introduction Of Function In C++ Read More »

Types of Functions In C++

There are two types of functions namely:   Library Functions   The declaration of library function is in the header file specified at the beginning of the program.   The definition is in a library file that is automatically linked to the program.   Declaration and definition are not required. We will only call the …

Types of Functions In C++ Read More »

Inline Functions In C++

There may be instances when you want to repeat a process more than once in a program. Well, you may think of going for the concept of functions. It’s fine as long as your function is a bit long.   Suppose there are only one or two lines you want to repeat? Is it worthwhile …

Inline Functions In C++ Read More »

Recursion In C++

This is another favorite topic in interviews and in question papers.   What is recursion? Recursion comes from the word ‘to recur’ which means happening repeatedly over and over again.   In programming we have recursive functions and they are functions that keep repeating themselves. How do they repeat themselves? Well, it’s like the function …

Recursion In C++ Read More »

Manipulators In C++

Manipulators are keywords that are used for doing something to change the way the output appears on the screen.   They are only for presentation purpose; just to make your program output look better.   One of the most commonly used manipulators is endl. This is used to end the line and leave the next …

Manipulators In C++ Read More »

Scroll to Top