This is the most basic program where the program prints the hello world. Through this, you can understand the basic structure of the C program.
This the basic program for beginners in C. Let us go through an example.
Program to Print “Hello World” in C
1 2 3 4 5 6 7 8 9 10 | //This is the header for standard I/O #include<stdio.h> //This is the main function int main() { printf("Hello, World!"); return 0; } |
Output:
Hello, World!
Run the above program in your C compiler and you will get the above output. You may go through the Program structure in C to understand the programming format better.