User defined data types

Why are user-defined data types necessary?

  1. The build-in data types are not good/adequate enough
  2. User-defined data types make the program code more understandable and less error-prone

What is a composite data type and what is a non-composite data type?

  1. A non-composite data type has a definition which does not involve a reference to another type. The commonly used non-composite user defined data types are: enumeration/enumerated data type, and pointer.
  2. A composite data type has a definition with reference to at least one other type. The commonly user composite data types are: record, set, classes and objects.

你可能感兴趣的:(Cambridge,Internation,Educatio,AS,&,AL,Computer,Science)