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
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What is static memory allocation?
How can I sort more data than will fit in memory?
What is dynamic dispatch in c++?
What is the difference between formatted&unformatted i/o functions?
What are the differences between Structures and Arrays?
Do you know the difference between exit() and _exit() function in c?
Describe newline escape sequence with a sample program?
What are register variables in c?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
Explain how do you print an address?
What are global variables?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
why programs in c are running with out #include
Explain what are multibyte characters?