The code is::::: if(condition)
Printf("Hello");
Else
Printf("World");
What will be the condition in if in such a way that both
Hello and world are printed in a single attempt?????? Single
Attempt in the sense... It must first print "Hello" and it
Must go to else part and print "World"..... No loops,
Recursion are allowed........................
Answer Posted / suvam45
#include<stdio.h>
#include<conio.h>
main()
{
static int i;
if(i==0)
{
printf("HELLO");
i=i+1;
main();
}
else
prinf("WORLD");
getch();
}
| Is This Answer Correct ? | 5 Yes | 13 No |
Post New Answer View All Answers
Why doesnt long int work?
I have a varargs function which accepts a float parameter?
What is sizeof int in c?
Explain pointers in c programming?
Is there any possibility to create customized header file with c programming language?
What is modeling?
pierrot's divisor program using c or c++ code
What should malloc() do?
What is && in c programming?
In C, What is the #line used for?
Is anything faster than c?
What is floating point constants?
main() { printf("hello"); fork(); }
Explain how can a program be made to print the name of a source file where an error occurs?
What is use of integral promotions in c?