The Importance of Data Type

Page 1

THE IMPORTANCE OF DATA TYPE


IT IS A TECHNIQUE WHICH DECIDES THE TYPE OF DATA SHOULD CONSIDER WHILE PERFORMING THE DIFFERENT OPERATION ON DIFFERENT DATA.



WHY DATA TYPES ARE IMPORTANT The main role of data type is to determine the role of operations to be performed on data. The only thing they do is to process data. Syntax: <Data Type><Variable Name>=Some Value Example:- int a=10; As mentioned in above example int ‘a’ is integer type of data also ‘a’ is name of variable which only accepts integer value. Here we have already defined the value of variable ‘a’ is equal=10;


DIFFERENT TYPES OF DATA 1. Integer This type of data only accepts integer value. For Example:- int x=10. 2. Char This type of data accepts only character value. For Example:- char c=20. 3. Float This type of data accepts only floats value. For Example:- float f=1.32 4. Array It is nothing but collection of same data type of that are in group of elements to perform any particular operation on data.


For More Information: Call Us @ 9825618292 Visit Us @ http://tccicomputercoaching.com


THANK YOU


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.