Our social:

Hello word in c language

Hello world is the first program that everyone write. Here is the program in C:

#include <stdio.h>

int main()
{
   printf("Hello World");
   return 0;
}

We can write the above program without using any semicolon (;). There are three ways to do that.

#1. Using While Loop:

#include <stdio.h>

void main()
{
    while(printf("Hello World")){
    }
}

C programming

#2. Using Conditional Logic
#include <stdio.h>

void main()
{
    if(printf("Hello World")){
    }
}
#3. Using Switch:
#include <stdio.h>

void main()
{
    switch(printf("Hello World")){
    }
}