C Programming Fundamentals Study Material
C Programming Fundamentals Study Material
1. Data Types
C supports various data types, including basic types such as int, float, char, as well as derived types
Type modifiers like 'short', 'long', 'signed', and 'unsigned' can alter the size and range of basic data
types.
2. Variables
Variables are containers for storing data values. In C, variables must be declared before they are
used.
Variables can be initialized at the time of declaration, e.g., int age = 25;
- Local variables
- Global variables
- Arithmetic operators: +, -, *, /, %
5. Functions
Functions are blocks of code that perform a specific task. In C, functions must be defined before
use.
7. Arrays
Arrays are collections of data items of the same type. In C, arrays can be single-dimensional or
multi-dimensional.