Developer community
+1 vote
113 views
can any1 tell me how to write a C program without using any semicolon which output will : Hello word
asked by Jr Member (240 points) 1 2 4 | 113 views

3 Answers

+1 vote
Best answer
its easy..

Solution:

void main()
{
    if(printf("Hello world"))
     { }

}
answered by Sr Member (3.2k points) 6 13 27
+1 vote
Solution:

void main()
{
    while(!printf("Hello world"))
    { }

}
answered by
0 votes
this will also work

Solution:

void main()
{
    switch(printf("Hello world"))
     { }
}
answered by Sr Member (3.2k points) 6 13 27

Related questions

0 votes
1 answer
+4 votes
2 answers
asked by Smita Advisor (7.1k points) 10 23 42 | 477 views
+1 vote
2 answers
+1 vote
1 answer
0 votes
1 answer
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

3,751 questions
4,046 answers
117 comments
10,709 users