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 |
In the following code segment what will be the result of the function, value of x , value of y { unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); } a) same, MAXINT, -1 b) not same, MAXINT, -MAXINT c) same , MAXUNIT, -1 d) same, MAXUNIT, MAXUNIT e) not same, MAXINT, MAXUNIT
Why does not use getgh(); and <conio.h> in c language.
1. Write a program to reverse every second word in a given sentence.
What is the use of ?
if array a conatins 'n' elements and array b conatins 'n-1' elements.array b has all element which are present in array a but one element is missing in array b. find that element.
18 Answers Parexel, Ram Infotech, Zycus Infotech,
which is an algorithm for sorting in a growing Lexicographic order
Why should I use standard library functions instead of writing my own?
What are pointers? Why are they used?
Reverse the bit order in a single macro. eg. i/p = 10010101 --> o/p = 10101001
what is the structure?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
Write a program to add a given duration with time(24hrs format)