Tuesday, 11 November 2014

C program to print hello world without using semicolon.


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