Types of User-Defined DataTypes
There are 4 types of user-defined data types in C. They are
- Structure
- Union
- Enum
- Typedef
User-Defined Data Types In C
Data Types are the types of data that can be stored in memory using a programming language. Basically, data types are used to indicate the type of data that a variable can store. These data types require different amounts of memory and there are particular operations that can be performed on them. These data types can be broadly classified into three types:
- Primitive Data Types
- Derived Types
- User Defined Data Types
In this article, will discuss the User-Defined Data Type.