Detailed_Basics_of_C_Programming
Detailed_Basics_of_C_Programming
• Keywords:
• - Reserved words like int, char, return.
• - Example: void, for, if, while, switch.
1.4 Data Types
• 1.4.1 Predefined Data Types:
• - Integer: int (signed, unsigned, long)
• - Float: float (e.g., 3.14), double for higher
precision
• - Character: char for single characters (e.g., 'a',
'z')
• - Octal: Numbers prefixed with 0 (e.g., 012)
• - Hexadecimal: Numbers prefixed with 0x (e.g.,
0x1A)
1.5 Operators and Expressions
• 1.5.1 Formatted Input/Output:
• - Input: scanf("%d", &variable)
• - Output: printf("Value: %d", variable)