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 are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
Explain what is output redirection?
When should a type cast not be used?
Is c call by value?
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
What is nested structure?
Why do we need functions in c?
What is the difference between single charater constant and string constant?
What are the different data types in C?
Why shouldn’t I start variable names with underscores?
How many keywords (reserve words) are in c?
Explain what is the general form of a c program?
Describe the order of precedence with regards to operators in C.
What is the use of bitwise operator?
What is difference between function overloading and operator overloading?