Tuesday 12 June 2012

PRINT HELLO WITHOUT ;






C program to print hello world without using semicolon



#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")){
    }
}


No comments:

Post a Comment