Posts

Showing posts from October, 2024

Data Types & Expressions

Image
  Data Types in C Each variable in C has an associated data type. It specifies the type of data that the variable can store like integer, character, floating, double, etc. Each data type requires different amounts of memory and has some specific operations which can be performed over it. The data type is a collection of data with values having fixed values, meaning as well as its characteristics. The data types in C can be classified as follows: Types Description Primitive Data Types Primitive data types are the most basic data types that are used for representing simple values such as integers, float, characters, etc. User Defined Data Types The user-defined data types are defined by the user himself. Derived Types The data types that are derived from the primitive or built-in datatypes are referred to as Derived Data Types.   Different data types also ha...