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
Write the syntax and purpose of a switch statement in C.
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
what are # pragma staments?
What is pivot in c?
What is the condition that is applied with ?: Operator?
What are high level languages like C and FORTRAN also known as?
What are the different data types in C?
What is boolean in c?
Why doesnt long int work?
Do variables need to be initialized?
Describe newline escape sequence with a sample program?
What are structure members?
what do you mean by enumeration constant?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
When should the register modifier be used? Does it really help?