How can I make a program in c to print 'Hello' without
using semicolon in the code?

Answers were Sorted based on User's Feedback



How can I make a program in c to print 'Hello' without using semicolon in the code?..

Answer / jaya prakash

int main()
{

if(printf("Hello"))
{
//Null statement
}

}

Is This Answer Correct ?    51 Yes 3 No

How can I make a program in c to print 'Hello' without using semicolon in the code?..

Answer / prashanth

main()
{

if(printf("hello"))

}

Is This Answer Correct ?    54 Yes 9 No

How can I make a program in c to print 'Hello' without using semicolon in the code?..

Answer / madhu

int main()
{
if(printf("Hello"))
{

}
}

Answer 2nd is correct;

Is This Answer Correct ?    23 Yes 1 No

How can I make a program in c to print 'Hello' without using semicolon in the code?..

Answer / akash dibya

{
if(printf("Hello"))
{
\*blank*\
}
}

Is This Answer Correct ?    18 Yes 1 No

How can I make a program in c to print 'Hello' without using semicolon in the code?..

Answer / manjushree

#include<stdio.h>
#include<conio.h>
int main()
{
if(printf("Hello"))
{

}
getch();
}

// if u use while loop it goes for an infinite loop , so
better to use if condition

Is This Answer Correct ?    12 Yes 3 No

How can I make a program in c to print 'Hello' without using semicolon in the code?..

Answer / mukul

main()
{
if( (printf("hello"))
}

Is This Answer Correct ?    11 Yes 4 No

How can I make a program in c to print 'Hello' without using semicolon in the code?..

Answer / arvind kumar

int main()
{
while(printf("Arvind kumar C-DAC"))
{

}
return 0;

}

Is This Answer Correct ?    8 Yes 4 No

How can I make a program in c to print 'Hello' without using semicolon in the code?..

Answer / shabeer basha

#include<stdio.h>
#include<conio.h>
void main()
{
if(printf("Hellow"))
{
}
}
// you are use semicolon in your program//

Is This Answer Correct ?    5 Yes 1 No

How can I make a program in c to print 'Hello' without using semicolon in the code?..

Answer / rosaiah

int main()
{
if(printf("hello"))
{
\* blank*\
}
}

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More C Interview Questions

what is the difference between definition and declaration? give me some examples.

2 Answers   TCS,


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

0 Answers  


how to print value of e(exp1)up to required no of digits after decimal?

1 Answers  


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

0 Answers   InterGraph,


How do you sort filenames in a directory?

0 Answers  






How can type-insensitive macros be created?

0 Answers  


What are disadvantages of C language.

0 Answers   iNautix,


What are local static variables?

0 Answers  


why program counter is 16 bit?

3 Answers  


Explain what is a static function?

0 Answers  


What is the c language function prototype?

0 Answers  


Is array name a pointer?

0 Answers  


Categories