40 likes | 174 Views
Chapter 6. Data Type. Outline. Data Type Concept Primitive Data Type. Data Type Concept. Data Type: It is a collection of data values and a set of predefined operations on these values. Ex : int number ; Values = integer numbers. Operations = + , - , *, /, %.
E N D
Chapter 6 Data Type
Outline • Data Type Concept • Primitive Data Type
Data Type Concept • Data Type: • It is a collection of data values and a set of predefined operations on these values. • Ex : • int number ; Values = integer numbers. Operations = + , - , *, /, %
Primitive data Type • It is the data type that doesn’t defined in terms of other type are called primitive data type. • Numeric Data Type: • Integer: byte – short – int • Floating-point : float double • Boolean type: bool [ true , false ] • Character type: char