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

1)which of following operator can't be overloaded. a)== b)++ c)?! d)<=

16 Answers   CybOrg, Siemens,


can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance

1 Answers   IBM,


What are extern variables in c?

0 Answers  


Whats wrong with the following function char *string() { char *text[20]; strcpy(text,"Hello world"); return text; }

3 Answers   Qualcomm,


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

0 Answers  






Is there a way to jump out of a function or functions?

0 Answers  


How to set file pointer to beginning c?

0 Answers  


Why the below program throughs error during compilation? #include<stdio.h> #include<conio.h> enum { ZERO, ONE, TWO, }; main() { printf("%d",&TWO); getch(); }

2 Answers  


What is a memory leak in structures? How can we rectify that?

2 Answers  


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

0 Answers  


what is the role you expect in software industry?

0 Answers   HCL,


Derive the complexity expression for AVL tree?

1 Answers  


Categories