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 could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
How can I ensure that integer arithmetic doesnt overflow?
Write a c program to demonstrate Type casting in c?
#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?
Explain do array subscripts always start with zero?
Suggesting that there can be 62 seconds in a minute?
What is main void in c?
What does p mean in physics?
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
Is it cc or c in a letter?
What is the difference function call by value & function call by reference?
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; }