Sunday, 25 June 2017

Variables in C++


What are Variables?

Variable are used in C++, where we need storage for any value, which will change in program. Variable can be declared in multiple ways each with different memory requirements and functioning. Variable is the name of memory location allocated by the compiler depending upon the data type of the variable.

Friday, 23 June 2017

Data Types in C++



They are used to define type of variables and contents used. Data types define the way you use storage in the programs you write. Data types can be built in or abstract.

Built in Data Types:
These are the data types which are predefined and are wired directly into the compiler. eg: int, char etc.

User defined or Abstract data types:
These are the type, that user creates as a class. In C++ these are classes where as in C it was implemented by structures.