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 / srikanth
int main()
{
if(fork())
{
printf("hello");
}
else
{
printf("world");
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the role of && operator in a program code?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
Write a program to print fibonacci series without using recursion?
Explain what is the concatenation operator?
Where are the auto variables stored?
What will be your course of action for a push operation?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What is the auto keyword good for?
What are the Advantages of using macro
What is a function in c?
What is union and structure in c?
What does %d do in c?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
What is the difference between typedef struct and struct?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }