Write a c program to print Hello world without using any semicolon ?

How to write a C Program to Print Hello World without using any semicolon ?


Solution - Type (a):
void main(){
    if(printf("Hello world")){
    }
}

Solution - Type (b):
void main(){
    while(!printf("Hello world")){
    }
}

Solution - Type (C):
void main(){
    switch(printf("Hello world")){
    }
}


Learn More :