4 Variables and Data Types
4 Variables and Data Types
TYPES
DR. THERESA-SAMUELLE ADJAIDOO
2
• VARIABLES
OUTLINE • DATA TYPES
u Integers are whole numbers that can have both positive and negative
values but no decimal values. Example: 0, -5, 10
u In C programming, the keyword int is used for declaring integer variables.
For example: int age;
u By declaring the variable age as having a data type of int means that
age would be used to store only integers.
u As such the compiler would reserve just the right amount of memory
space for storing an integer.
THE END
Any Questions?
Contact: [email protected] or [email protected]