1)Primitive data types ●Integer numbers ●Machine data types ●Boolean type ●Numeric types ●Fixed-point numbers Floating-point numbers Characters and strings 13 DATA Copyright 2019 by Xiaoyu Li
Copyright © 2019 by Xiaoyu Li. 13 1)Primitive data types Integer numbers Machine data types Boolean type Numeric types Fixed-point numbers Floating-point numbers Characters and strings
2)Composite data types ●Enumerations String and text types 14 DATA Copyright 2019 by Xiaoyu Li
Copyright © 2019 by Xiaoyu Li. 14 2)Composite data types Enumerations String and text types
3)Other data types Pointers and references ●Function types 15 DATA Copyright 2019 by Xiaoyu Li
Copyright © 2019 by Xiaoyu Li. 15 3)Other data types Pointers and references Function types
4)Abstract data types Examples include: A queue is a first-in first-out list.Variations are Deque and Priority queue. .A set can store certain values,without any particular order,and with no repeated values. A stack is a last-in,first out data structure. .A tree is a hierarchical structure. ·A graph. .A hash,dictionary,map or associative array is a more flexible variation on a record,in which name-value pairs can be added and deleted freely. .A smart pointer is the abstract counterpart to a pointer.Both are kinds of references. 16 DATA Copyright 2019 by Xiaoyu Li
Copyright © 2019 by Xiaoyu Li. 16 4)Abstract data types
5)Utility types high-level languages may supply ready- made "real world"data types,for instance t times,dates and monetary values and memory,even where the language allows them to be built from primitive types. 17 DATA Copyright 2019 by Xiaoyu Li
Copyright © 2019 by Xiaoyu Li. 17 5)Utility types high-level languages may supply readymade "real world" data types, for instance times, dates and monetary values and memory, even where the language allows them to be built from primitive types