After Program to Print HELLO without HELLO , Here is another program to print HELLO WORLD Without Using Semicolon (;).
To see the output: compile the code by Ctrl+F9 and then run it by Alt+F5
Code:
Method 1:
void main()
{
if(printf("Hello world")){
}
}
Method 2:{
if(printf("Hello world")){
}
}
void main(){
while(!printf("Hello world")){
}
}
Method 3:while(!printf("Hello world")){
}
}
void main(){
switch(printf("Hello world")){
}
}
switch(printf("Hello world")){
}
}
Hope you liked this post, please comment below to express your feelings.. :)
Categories:
Special Codes
,
tricky code
3 comments:
These codes really are amazing.
But I didnot understand why the expression inside 'if' is printed. I mean it is just a condition that is to be checked for boolean true or false.
Please explain.
Such a useful programming examplesQ!
codes are really very helpful.
Post a Comment