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
Answer / jaya prakash
int main()
{
if(printf("Hello"))
{
//Null statement
}
}
| Is This Answer Correct ? | 51 Yes | 3 No |
Answer / madhu
int main()
{
if(printf("Hello"))
{
}
}
Answer 2nd is correct;
| Is This Answer Correct ? | 23 Yes | 1 No |
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 |
Answer / arvind kumar
int main()
{
while(printf("Arvind kumar C-DAC"))
{
}
return 0;
}
| Is This Answer Correct ? | 8 Yes | 4 No |
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 |
Answer / rosaiah
int main()
{
if(printf("hello"))
{
\* blank*\
}
}
| Is This Answer Correct ? | 2 Yes | 1 No |
what is the function of pragma directive in c?
What is a newline escape sequence?
Why is sizeof () an operator and not a function?
How we can set and clear bit in a byte using macro function?
Write a program which take a integer from user and tell whether the given variable is squar of some number or not. eg: is this number is 1,4,9,16... or not
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
How does selection sort work in c?
Can you please explain the difference between malloc() and calloc() function?
what is the difference between structural,object based,object orientd programming languages?
How can I open files mentioned on the command line, and parse option flags?
How can I implement a delay, or time a users response, with sub-second resolution?
What is structure data type in c?