How can you print HELLO WORLD without using "semicolon"?

Answers were Sorted based on User's Feedback



How can you print HELLO WORLD without using "semicolon"?..

Answer / gganesh

#include<stdio.h>
void main()
{
if(printf("Hello world"))
{
}
}

Is This Answer Correct ?    30 Yes 8 No

How can you print HELLO WORLD without using "semicolon"?..

Answer / vinita khandavi

#include(stdio.h)
// Develped by vinita
void main()
{
if(printf("Hello world"))
{
}
}

Is This Answer Correct ?    32 Yes 17 No

How can you print HELLO WORLD without using "semicolon"?..

Answer / anuj shukla

#include<stdio.h>
void main()
{
if(printf("helloworld"))
{
}
}

Is This Answer Correct ?    17 Yes 6 No

How can you print HELLO WORLD without using "semicolon"?..

Answer / prakash

#include<stdio.h>
#include<conio.h>
void main()
{
if(printf(hello world))
{
getch();
}
}

Is This Answer Correct ?    12 Yes 9 No

How can you print HELLO WORLD without using "semicolon"?..

Answer / m.manivel

#include<stdio.h>
int main()
{
switch(printf("hello world!))
return 0;
}

Is This Answer Correct ?    0 Yes 0 No

How can you print HELLO WORLD without using "semicolon"?..

Answer / spicy

#include<stdio.h>
void main()
{
if(printf("HELLO WORLD"))
getch();
}

Is This Answer Correct ?    3 Yes 6 No

How can you print HELLO WORLD without using "semicolon"?..

Answer / sivasankari

#include <stdio.h>

#define WEE puts( "Hello World!" );

int main( int argc, char * argv[] ) {
WEE

}

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Interview Questions

What are the types of arrays in c?

0 Answers  


what is difference between userlevel threads and kernel level threads ?what are the trades offs between these two approaches ? what approach is most frequently used and why ?

1 Answers  


What is substring in c?

0 Answers  


How to print %d in output

6 Answers   Wipro,


Place the #include statement must be written in the program?

0 Answers  






Why is malloc used?

1 Answers  


what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); printf("%d%d%d%d%d%d",b--,b--,--b,b--,--b,--b);

10 Answers   IBM,


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

0 Answers  


what is printf

5 Answers   MVSR, Satyam,


7. Identify the correct argument for the function call fflush() in ANSI C: A)stdout B)stdin C)stderr D)All the above

10 Answers   Accenture,


can any one tell that i have a variable which is declared as static but i want this variable to be visible to the other files? how?

2 Answers  


What is a lvalue

0 Answers   Global Logic,


Categories