Saturday, May 13, 2017

C program without Semicolon




C program without Semicolon.

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

Output of program

Hello World

Note: Here printf( ) function is passed as a parameter to if statement; hence semi-colon is not needed at the end of printf() statement.


No comments:

Post a Comment