Discussion Forums

New User? Please read instructions!

How to print Hello World without using semi colon in C program?  

  RSS

thiyagarajan
Eminent Member
Joined: 1 month  ago
Posts: 26
27/01/2017 9:38 am  

How to print Hello World without using semi colon in C program?


ReplyQuote
admin
Eminent Member
Joined: 5 years  ago
Posts: 26
31/01/2017 1:39 pm  

Hi Thiyagarajan,

Below C program will print "Hello World" without using semi colon. This program displays hello world and then returns 11 ( the length of the string "hello world" )

#include <stdio.h>

int main() 

{

   if(printf("Hello World")) 

   { }

}

Output:

Hello World


ReplyQuote
  
Working

Please Login or Register

Ask your questions or clarify your/others doubts from,

✅ Online Discussion Forums by Fresh2Refresh.com





Share this website !!!
Facebook Twitter Linkedin

Close
We Support JALLIKATTU !!!
We Support JALLIKATTU!
By Fresh2Refresh.com
Show Your Support as well. Thanks!