C Program To Print Hello World

 


C "Hello World" Program

In this example, you will learn to print "Hello World" on the screen in C language.

Code For Print "Hello World".

/* Author --> Harsh Patel */

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

Hello World

How "Hello World" program works? 

  • The #include preprocessor command that tells the compiler to include stdio.h 
  • The stdio.h file contains functions such as scanf() and printf() to take input and display output. 
  • We Dont Use printf() function without writing #include
  • The execution of a C program starts from the main() function. 
  • printf() is a library function. In this program printf() displays "Hello World" in screen. 
  • The return 0; statement ends the program.
🖥️ Learn Programming Languages Free In Our Website Coding With Harsh 
👨‍🎓 5000+ Happy Visitor 👩‍🎓
🌐 Free Programing Examples In WebsitCoding With Harsh 

  • If Any Query Regarding Programs, Website Or More Details Email Us On Contact@CodingWithHarsh.gq

Popular posts from this blog

Declare And Initialize Two Character Constants And Output It To User

C Program To Calculate Profit Or Loss