Data Types in C Programming - A Beginner Guide with examples
What are Data Types?
A data type specifies the kind of value a variable can hold and how much memory it occupies.
Primary (Basic) Data Types
int— whole numbers, e.g.int age = 25;float— single-precision decimal numbers, e.g.float price = 19.99;double— double-precision decimal numbers.char— a single character, e.g.char grade = 'A';void— represents "no value", commonly used for functions that return nothing.
Derived Data Types
Arrays, pointers, functions, and structures — built from primary types.
User-Defined Data Types
struct, union, enum, and typedef.
int marks = 90;
float pi = 3.14f;
char letter = 'Z';
PreviousConstants in C language
Next Variables in C Programming - Types of Variables in C ( With Examples )
Ready to master real-world C Programming development?
Learn C Programming hands-on with mentor-led, live sessions.
.png)