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


Please Help Members By Posting Answers For Below Questions

what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1479


Explain what is output redirection?

910


When should a type cast not be used?

848


Is c call by value?

820


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

1691


What is nested structure?

800


Why do we need functions in c?

756


What is the difference between single charater constant and string constant?

869


What are the different data types in C?

964


Why shouldn’t I start variable names with underscores?

859


How many keywords (reserve words) are in c?

832


Explain what is the general form of a c program?

837


Describe the order of precedence with regards to operators in C.

855


What is the use of bitwise operator?

898


What is difference between function overloading and operator overloading?

882