data type & declaration

Basic data type The basic data types are datatypes already defined in the programing language Youtube tutorial: Declaring variable All varaiable present in the program must be declared before it is used. The generalform is data-type variable list; Initializing variables The process of assigning initial value to variable during declaration is called initializing variable The general form is, data-type variable = initial value; Example int a = 10; Assigning value to variables giving values to variable is called assigning values to variable The general form is variable-name = value; Example a=10; cd=25; Declaring variable as constants A constant is quality whose value does not change during program execution The general form is const data-type variable = value; where const -- keyword data-type -- int,float,etc.. Exa...