Common Composite Data Types
Some common composite data types are as follow:
Data Type | Definition | Example |
---|---|---|
String (string) | Sequence of characters, digits, or symbols—always treated as text | hello , ram , i am a girl |
array | List with a number of elements in a specific order—typically of the same type | arr[4]= [0 , 1 , 2 , 3 ] |
pointers | Blocks of memory that are dynamically allocated are managed and stored | *ptr=9 |
Data Types in Programming
In Programming, data type is an attribute associated with a piece of data that tells a computer system how to interpret its value. Understanding data types ensures that data is collected in the preferred format and that the value of each property is as expected.
Table of Content
- What are Data Types in Programming?
- Common Data Types in Programming
- Common Primitive Data Types in Programming
- Common Composite Data Types
- Common User-Defined Data Types
- Dynamic vs Static Typing in Programming
- Type Casting in Programming
- Variables and Data Types in Programming
- Type Safety in Programming