C++- Variable defined

Objective:

  • Data Type introduced

  •  

Step: 1  Open workspace if it is not open yet.

Create a new project

Step: 2 Add source file.

This creates a new empty source file. Start editing code in the source file

Source doe:

Step: 3 Data Type and variable: meaning that a variable is a place holder (in the memory) and has a memory location; this variable is capable of holding a line of characters. Here "fname" is a variable that holds