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 line in c preprocessor?
Compare and contrast compilers from interpreters.
What are the loops in c?
Explain how do you declare an array that will hold more than 64kb of data?
What is self-referential structure in c programming?
What is actual argument?
can any one tel me wt is the question pattern for NIC exam
Which is best linux os?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
develop algorithms to add polynomials (i) in one variable
How to draw the flowchart for structure programs?
Explain the difference between structs and unions in c?
Give differences between - new and malloc() , delete and free() ?
Function calling procedures? and their differences? Why should one go for Call by Reference?
How can you increase the size of a dynamically allocated array?