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

how we do lcm of two no using c simple if while or for statement

1 Answers  


print the table 5 in loops

3 Answers  


What is function definition in c?

0 Answers  


program to print upper & lower triangle of a matrix

2 Answers   TCS,


program for reversing a selected line word by word when multiple lines are given without using strrev

0 Answers   IBM,






what is the definition of storage classes?

3 Answers   Wipro,


Is linux written in c?

0 Answers  


write a program to copy a string without using a string?

2 Answers  


what is the little endian and big endian?

1 Answers  


How does pointer work in c?

0 Answers  


What is hashing in c language?

0 Answers  


Which is an example of a structural homology?

0 Answers  


Categories