GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  C
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 432 of 453    Print  
Hello World
Write a program in C to display output as "hello world" without using semicolon(;)?


  
Total Answers and Comments: 5 Last Update: September 11, 2009     Asked by: d.gupta03 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: sriranga.ch
 

main()
{
if(printf("HelloWorld"))

}



Above answer was rated as good by the following members:
Jaya_Kaja, picc_kumar, rajani_vaddepalli15, ramesh_radharam
August 22, 2008 01:27:48   #1  
sriranga.ch Member Since: August 2008   Contribution: 5    

RE: Hello World

main()
{
if(printf("HelloWorld"))

}


 
Is this answer useful? Yes | NoAnswer is useful 4   Answer is not useful 1Overall Rating: +3    
September 09, 2008 15:10:16   #2  
rashmi.mohanty Member Since: September 2008   Contribution: 8    

RE: Hello World
void main()
{ switch(printf("HELLO WORLD")) { }
}

 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
September 19, 2008 01:40:50   #3  
dinesh_27 Member Since: September 2008   Contribution: 2    

RE: Hello World

main()
{
if(printf("hello world"))
}


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 2Overall Rating: -1    
July 23, 2009 06:30:40   #4  
amoljadhav09 Member Since: January 2009   Contribution: 1    

RE: Hello World
main()
{
if(printf("Hello World"))
{}
}

 
Is this answer useful? Yes | No
September 11, 2009 04:47:31   #5  
mohit_verma Member Since: September 2009   Contribution: 2    

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

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape