C program : How 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")){
    }
}

Output:

C programs, C programming examples, hello world in c

Post a Comment

  1. I found that site very usefull and this survey is very cirious, I ' ve never seen a blog that demand a survey for this actions, very curious... c program to find lcm of n numbers

    ReplyDelete

 
Top