Pages

Friday 9 September 2011

Data Types (2)

Primitive Data Types:
Primitive data types are described in a program by language specific keywords

Primitive data type in Java
Java defines eight primitives
  1. int
  2. char
  3. byte
  4. short
  5. long
  6. float
  7. Boolean
  8. double
Primitive data type in C++
C/C++ basic data types are :
  1. int
  2. float
  3. char
  4. double
  5. short
  6. long
  7. signed
  8. unsigned
Primitive Data in Visual Basic

  1. Integer
  2. Long
  3. Single
  4. Souble
  5. Boolean
  6. Byte
  7. Dim
  8. Private
  9. Public
  10. Static
Now we discuss the second type of Data Types
Composite Data Types
Complex data types are defined using combination of priimitve types. Composite data types can be arrays, vector and strings.
Array : An array is a collection of homogenous data types
Vectors: Vector are mathematical representation of arrays
String: A strings is a combination of characters

No comments:

Post a Comment