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
Is c weakly typed?
What do you mean by keywords in c?
What is the difference between printf and scanf )?
Explain the concept and use of type void.
What is a structural principle?
Explain About fork()?
write a program to find the given number is prime or not
What are local static variables? How can you use them?
Explain union. What are its advantages?
Why is structure padding done in c?
What are qualifiers?
what will be maximum number of comparisons when number of elements are given?
How pointers are declared?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
What are the different categories of functions in c?