CPP Data Types

CPP Data Types are used to define the type of data that is to be stored. CPP data types can be classified into 4 groups: Basic Data Types: Integer Float Double Character Derived Data Types: Array Pointer Enumeration Data Types: Enum User Defined Data Types: Structure   Basic Data Types: Integer: All the non-decimal numbers … Read more

Categories CPP

CPP Variable

A variable is a temporary memory location that holds its data temporarily. CPP requires the data type of the variable to be well defined at the time of variable declaration, depending on its value. Syntax: data_type variable_list; Rules for using CPP Variables: CPP Variable name starts with a letter or underscore only; numbers and special … Read more

Categories CPP

CPP cout, cin, endl

CPP provides predefined input/output objects and functions to control the flow of data from device to memory and from memory to device. CPP cout: CPP cout is an inbuilt library object of ostream class, which is used for output. The cout object is defined in iostream.h (header file) in CPP library. CPP cout is used … Read more

Categories CPP

CPP Example

Lets print “Hello CPP” as the first CPP program and than understand it in detail. #include <iostream.h> #include<conio.h> void main() { clrscr(); cout <<"Hello CPP!"; getch(); }#include <iostream.h> #include<conio.h> void main() { clrscr(); cout <<"Hello CPP!"; getch(); } Output Hello CPP!Hello CPP! Description: #include <iostream.h> : “#include” is a preprocessor directive used to include a … Read more

Categories CPP

CPP Installation

Installing CPP simply means to download a compiler from a range of CPP compilers available and then to install that compiler in your system. Turbo C++ is one of the most popular compiler for both C and C++. In order to install a Turbo C++ software, below steps should be followed. Steps to install Turbo … Read more

Categories CPP

CPP Features

CPP is a general purpose Object Oriented Programming language which evolved as an extension to C language. It is an intermediate level language, as it encapsulates the features of both high and low level language. Some of the major features of CPP are; Simple and Easy to Understand: CPP provides multiple features that makes it … Read more

Categories CPP

C vs CPP

CPP is a general purpose Object Oriented Programming language which evolved as an extension to C language. It is an intermediate level language, as it encapsulates the features of both high and low level language. If we compare C with CPP, the major difference is that C is a procedural language, however, C++ is an … Read more

Categories CPP