Printing ' Hello world ' without using any semicolon

The below program shows how to print something without using semicolon. The program is implemented using c.

Output :


Code :



#include<stdio.h>
main()
{
    if(printf("Hello world"))
    {

    }
}

Description :

In C, printf() returns the number of character successfully written on the output.

Comments

Popular posts from this blog

Non Restoring Division Algorithm Implementation in C

Bit Stuffing Code Implementation in Java

Hackerrank Modified Kaprekar Numbers Solution