Elements of C++ Language

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 »