Introduction to C
C is a general-purpose programming language created by Dennis Ritchie. It is widely used in system programming, embedded systems, operating systems and application development.
Why Learn C?
- Fast and efficient
- Simple and powerful
- Provides low-level memory access
- Foundation for C++
- Useful for DSA and competitive programming
- Widely used in embedded systems
First C Program
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}
The main() function is the starting point of a C program.
The printf() function displays output on the screen.