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
Why c language is called c?
Is there sort function in c?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
What are global variables?
What are the 5 types of inheritance in c ++?
What is a good way to implement complex numbers in c?
What are the types of assignment statements?
How can I swap two values without using a temporary?
What is switch in c?
Define circular linked list.
Why is #define used?
Why clrscr is used in c?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
What happens if a header file is included twice?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?