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 could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

0 Answers  


How can I ensure that integer arithmetic doesnt overflow?

0 Answers  


Write a c program to demonstrate Type casting in c?

2 Answers  


#define DCHAR char* typedef char* TCHAR; if using these following variables will be declared like DCHAR ch1, ch2; TCHAR ch3, ch4; then what will be types of ch1, ch2, ch3 and ch4?

6 Answers   NDS,


Explain do array subscripts always start with zero?

0 Answers  






Suggesting that there can be 62 seconds in a minute?

0 Answers  


What is main void in c?

1 Answers  


What does p mean in physics?

0 Answers  


Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage

7 Answers   Accenture,


Is it cc or c in a letter?

0 Answers  


What is the difference function call by value & function call by reference?

6 Answers  


int main() { int i=1; switch(i) { case '1': printf("hello"); break; case 1: printf("Hi"); break; case 49: printf("Good Morning"); break; } return 0; }

3 Answers  


Categories