C program to print hello world without using semicolon.

C program without using semicolon

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

0 comments:

Post a Comment