Can you print “hello world” without using a semicolon in C?

YES, you can print hello world without using semicolons in C.

Method 1: Using if

  1. #include <stdio.h> 
  2.  
  3. int main() { 
  4. if(printf("hello world")){} 
  5. } 

Method 2: Using While

  1. #include <stdio.h> 
  2.  
  3. int main() { 
  4. while(!printf("hello world")){} 
  5. }
  6.  



Output:

hello world


Comments

Popular posts from this blog

proassignment help backlink data index 41

programming shark backink data index 31

Programming shark backlink data index 67