C Program to Print Hello World without using semicolon

C Program to Print Hello World without semicolon

This is a trick to print text like “Hello World” in c program without using any semicolon. There are multiple way to do this but we are doing it using if condition.

#include<stdio.h> 
#include<conio.h> 

void main() { 
  if(printf("Hello world")){} 
}

Read our other Article: C Program to remove comments from source code


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *