Monday 25 August 2014

Filled Under: ,

C Program to Print Hello word without using semicolon

Share
Here we provide various C Program to Print Hello word without using semicolon.

C Program to Print Hello word without using semicolon

C Program to Print Hello word without using semicolon

Program 1 : Print  Hello word in C without using semicolon [only ones ]


#include<stdio.h>
void main()
{
   if(printf("Hello"))
   {
   }
}


Program 2 : Print  Hello word in C without using semicolon [infinite times]


#include<stdio.h>
void main()
{
while(printf("hello"))
{}
}

Program 3 : Printf Hello [Using Switch]




#include<stdio.h> void main(){ switch(printf("hello")) {}}


Program 4 : Using Else-if Ladder


#include<stdio.h>vovoid main(){{   if(printf(""))      {      }   else if (printf("Hello"))      {      }

   else
      {
      }}

program 5 : Print  Hello [Using While and Not]


#include<stdio.h>
void main()
{
    while(!printf("Hello"))
    {
    }
}


Program 6 : Using #define


#include<stdio.h>
#define PRINT printf("Hello")
void main()
{
    if(PRINT)
    {
    }
}