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
What is the difference between test design and test case design?
Is c++ based on c?
What is use of bit field?
What is function and its example?
What is wrong in this statement? scanf(ā%dā,whatnumber);
how many key words availabel in c a) 28 b) 31 c) 32
Write a program to check palindrome number in c programming?
What is the scope of local variable in c?
What is #include stdio h?
What is extern storage class in c?
What is the function of multilevel pointer in c?
What is this infamous null pointer, anyway?
Is main is a keyword in c?
What is || operator and how does it function in a program?
What should malloc(0) do?