In this content, you will learn how to print Hello word without using any semicolon. There are three examples to print Hello word without using any semicolon.
Example- 1
void main(){
if(printf("Hello world")){
}
}
Example- 2
void main(){
while(!printf("Hello world")){
}
}
Example- 3
void main(){
switch(printf("Hello world")){
}
}
Example- 1
void main(){
if(printf("Hello world")){
}
}
print Hello word without using any semicolon |
Example- 2
void main(){
while(!printf("Hello world")){
}
}
print Hello word without using any semicolon |
Example- 3
void main(){
switch(printf("Hello world")){
}
}
print Hello word without using any semicolon |
2 Comments
Standards state that the main function must return an integer, void main is illegal as per section 5.1.2.2.1 of the standard
ReplyDeleteTo print "Hello, World!" without using any semicolon in a programming language like Python or JavaScript. Way Unblock Spotify Both of these examples will display "Hello, World!" in the console or output window of the respective programming.
ReplyDelete