Skip to main content

Posts

Showing posts with the label Data Type in C

What is data type in C Language with Example

 In the C programming language, a data type is a classification or category that determines the type of data that can be stored in a variable. It defines the size of the variable's memory allocation, the range of values it can hold, and the operations that can be performed on it. Data types in C can be classified into the following categories: 1. Basic Data Types:    - int: Used to represent integers (whole numbers) with a specific range.    - char: Used to represent single characters.    - float: Used to represent floating-point numbers with single precision.    - double: Used to represent floating-point numbers with double precision. 2. Modifiers for Basic Data Types:    - short: Modifies the range of integers to be smaller than int.    - long: Modifies the range of integers to be larger than int.    - signed: Specifies that the data type can represent both positive and negative values.    - unsigned:...