Variables in C
Variables in C
type variable_name;int age; // declares an integer variable
float height; // declares a floating-point variable
char grade; // declares a character variable2. Initialization
int age = 19; // age is initialized to 19
float height = 5.9;
char grade = 'A';3. Naming Variables
4. Scope of Variables
5. Constant Variables
6. Memory and Variable Sizes
7. More on Data Types
Last updated