Free Learning Platform for Students
C is one of the world's most influential programming languages. It is fast, powerful, portable, and forms the foundation for many modern languages such as C++, Java, and Python implementations.
Learning C helps students understand memory, algorithms, and problem-solving at a deeper level.
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}
This program prints Hello, World! on the screen.
| Type | Description | Example |
|---|---|---|
| int | Integer numbers | 25 |
| float | Decimal values | 3.14 |
| char | Single character | 'A' |
| double | High precision decimal | 15.6789 |
Loops repeat a block of code multiple times.
for(int i=1;i<=5;i++)
{
printf("%d\n", i);
}
Output:
1 2 3 4 5
Which function is the entry point of a C program?
printf()