How To Print 'Hello World' Without Semicolon Of End Of The Printing Statement In C Language.

print Hello World without semicolon of end of the printing statement in c language
  print any message without semicolon of end of the printing statement.
 
Let's See Simple Example To Print "Hello World" Using If Statement And Without Using Semicolon:
#include<stdio.h>  
int main()    
{    
 if(printf("hello world"))
 {
 	//Block of if statement
 }    
 return 0;  
}
Output:
hello world
Write below C programs for pratice purpose:

Run above same program using swith case and loops(for loop, while loop and do..while loop).

Post a Comment

0 Comments