Tuesday, October 29, 2013

C programs that print hello word without using semicolon

It is easy to run a program that prints hello world without using a semicolon. Here some solutions are given. try new if possible.
<Yahh..!! this is for B.Tech guys..!!>
......................................................

Solution: 1
 
#include
<stdio.h>
void main(){
    if(printf("Hello world")){
    }
}
Solution: 2
#include<stdio.h>
void main(){
    while(!printf("Hello world")){
    }
}
Solution: 3
#include<stdio.h>
void main(){
    switch(printf("Hello world")){
    }
}