Hello World Program in C

The Hello World Program in C programming language is the first program that usually anyone getting started with C programming language plays with.  

This is very simple

Just type the below small piece of code in your C Compiler and press run. Let’s have a glance at the Hello World Program in Turbo C.

Hello World Program in C

#include<stdio.h>
int main(void)
{
printf("Hello World!");
return 0;
}

That’s it you are ready to make your hands dirty with the exciting C programs.

Output

Hello World!

Hello World using the string in C

#include <stdio.h>

int main()

{

char string[] = "Hello World";

printf("%s\n", string);

return 0;

} 

Output

Hello World!

Leave a Comment

Your email address will not be published. Required fields are marked *