Print without semicolon


In c statements are printed using a printf statement terminated by a semicolon.If we provide this printf statement inside an if,while or any other loops the statements will be printed without the requirement of a semicolon.
Since the loop will be executed by default


#include <stdio.h>
int main()
    if(printf("hello world!"))
    return 0;


hello world!                                                                                                                                   


Popular posts from this blog

C program to print the following Pattern

c++ program to print string along the diagonals of the matrix.

Kollywood Game