C Programming Tutorial for Beginners | #4 Data Types | Keywords | Operators

C Programming Tutorial for Beginners | #4 Data Types | Keywords | Operators

79 View

C programming language provides several data types that allow you to work with different kinds of values. Here are some of the commonly used data types in C:

Basic Data Types:

int: Used to store integers (whole numbers). Typically, it's a 4-byte data type.
float: Used to store floating-point numbers (real numbers). It's a 4-byte data type.
double: Used to store double-precision floating-point numbers. It's an 8-byte data type.
char: Used to store individual characters. It's typically a 1-byte data type.
Derived Data Types:

Array: A collection of elements of the same data type.
Pointer: A variable that stores the memory address of another variable.
Structure: A user-defined data type that groups different variables under a single name.
Union: Similar to a structure, but only one of its members can contain a value at a time, sharing the same memory.
Enumeration Data Type:

enum: A user-defined data type that consists of a set of named integer constants.
Modifier Data Types:

short: Used to reduce the range of values for an integer (usually 2 bytes).
long: Used to extend the range of values for an integer (usually 4 bytes).
unsigned: Used to specify that a variable can only hold positive values.
signed: Used to specify that a variable can hold both positive and negative values.


Did you miss our previous article...
https://learningvideos.club/computer-technology/how-to-learn-arduino-in-25-minutes-tagalog-arduitronics-pinoy