Datatypes

 Datatypes


In this program I written datatypes like int, char, float,etc.




The datatype int will write integer values like 1,2,3,4....etc, datatype char will write characters means alphabets like a,b,c,A,B,C,etc. And the float datatype will write decimal values like 1.2, 5.5, 346.6, 7.86 like wise. And I have used cout function to print those values. And there are many data types like integer, character, boolean, floating point, double floating point, valueless or void, wide character and etc.

Here you can see something new which is namespace std; which means let me explain In programming, we cannot have variables, functions, etc with the same name. ... “using namespace std” means we use the namespace named std. “std” is an abbreviation for standard. So that means we use all the things with in “std” namespace.


And you can see the output also.

It look great, aren't it???  
Post a Comment (0)
Previous Post Next Post