How to print "Hi World" without using semi colon?

Answers were Sorted based on User's Feedback



How to print "Hi World" without using semi colon?..

Answer / bhumit

main()
{
clrscr();
if(printf("HI World"))
getch();
}

Is This Answer Correct ?    20 Yes 6 No

How to print "Hi World" without using semi colon?..

Answer / ayyanar.m

main()
{
clrscr();
if(printf("HI World"))
getch();
}

Is This Answer Correct ?    1 Yes 1 No

How to print "Hi World" without using semi colon?..

Answer / manoj singh

#include<stdio.h>
void main()
{
clrscr();
if(printf("\"Hi world\""))
while(!kbhit());
}




// sorry for previous answer

Is This Answer Correct ?    2 Yes 3 No

How to print "Hi World" without using semi colon?..

Answer / ankit choudhary

void main()
{
clrscr();
if(printf("\nHi World"))
getch();

}

Is This Answer Correct ?    0 Yes 1 No

How to print "Hi World" without using semi colon?..

Answer / saravana kumar

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

Is This Answer Correct ?    0 Yes 1 No

How to print "Hi World" without using semi colon?..

Answer / manoj singh

void main()
{
clrscr();
if(printf(""HI World""))
getch();
}

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More C Interview Questions

main is a predefined or user define function if user defined why? if predefined whay?

12 Answers   TCS,


What is the difference between ‘g’ and “g” in C?

1 Answers  


what do structure language means?

3 Answers   Microsoft,


How can I find out how much free space is available on disk?

0 Answers  


What are global variables and how do you declare them?

0 Answers  






do u print this format '(((())))'. This brackets is based on user input like 4 or 5 or 6,without using any loop's?

1 Answers   Oracle,


Write a C function to search a number in the given list of numbers. donot use printf and scanf

6 Answers   Honeywell, TCS,


1. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)

12 Answers   Eskom, TCS,


Is calloc better than malloc?

0 Answers  


Can you write the function prototype, definition and mention the other requirements.

0 Answers   Adobe,


write a c program to accept a given integer value and print its value in words

4 Answers   Vernalis, Vernalis Systems,


#include<stdio.h> void main() { int a=5,b=6,c; int x=(a<b)+7; int y=(x==7)*9; int z=(c=x+y)*2; printf("%h %h %h",x,y,z); } What is the output? Explain it.

8 Answers   IBM,


Categories