How to Print 'Hello World' in C without Semicolon (;)?

Hello! How's it going, guys? Do you know that you can print 'Hello World' in C Programming without using a semicolon (;). How can you do so? You can find it out if you go through this article completely. A friend of mine has made a tutorial to help you out. I am going to embed that video in this article to help you out.


You can skip the whole article and just watch this video or you can go through the article instead of watching the video. You can watch the video to understand well.




There are many methods to print 'Hello World' in C without using semicolon (;).

Method 1:

Program:


#include<stdio.h>
void main(){
    if(printf("Hello World")){
    }
}

Output:

Hello World

Method 2:

Program:


#include<stdio.h>
int main()
{
      switch(printf("\nHello World"))
}

Output:

Hello World

Method 3:

Program:


#include<stdio.h>
void main(){
    switch(printf("Hello World")){
    }
}

Output:

Hello World

Method 4:

Program:


#include<stdio.h>
void main(){
    while(!printf("Hello World")){
    }
}

Output:

Hello World


These are the four different ways to print 'Hello World' in C without using semicolon (;). If you know any other programs to print 'Hello World' without using semicolon in C, please let me know in the comments section below. And, here's the same C programming tutorial on printing 'Hello World' without using semicolon:



If you liked this video, please don't forget to subscribe to Tutor Sushant's YouTube channel for more C programming tutorials. 

1 comment:

  1. first casino login【Link Vào Trang Chủ_SODO66.PH
    first casino login,【Link Vào Trang Chủ_SODO66.PH】,jum 퍼스트 카지노 gew bao online casino free starvegad spins,hot slots,nba playoffs,santa 카지노사이트 slots online,gos dell

    ReplyDelete

Powered by Blogger.