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
How is a null pointer different from a dangling pointer?
What is the total generic pointer type?
What are the benefits of c language?
What are preprocessor directives in c?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
State the difference between realloc and free.
What is selection sort in c?
largest Of three Number using without if condition?
Do pointers need to be initialized?
Do you know what are bitwise shift operators in c programming?
Write a program to print fibonacci series using recursion?
Was 2000 a leap year?
Explain what are the standard predefined macros?
Why doesnt this code work?
Array is an lvalue or not?