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 main difference between calloc () and malloc ()?

0 Answers  


What is void main ()?

0 Answers  


Explain continue keyword in c

0 Answers  


Explain what does the function toupper() do?

0 Answers  


Can a pointer point to null?

0 Answers  






44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?

3 Answers  


How do you access command-line arguments?

1 Answers  


ATM machine and railway reservation class/object diagram

0 Answers   Zycus Infotech,


program to find the ASCII value of a number

8 Answers  


what are bit fields? What is the use of bit fields in a structure declaration?

0 Answers   Flextronics, TISL, Virtusa,


C passes By value or By reference?

5 Answers   Geometric Software, Infosys,


Why doesnt long int work?

0 Answers  


Categories