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 / abdur rab
#include <stdio.h>
int main ( int argc, char* argv[] )
{
if ( !printf("Hello") )
printf ("Hello");
else printf (" World");
}
| Is This Answer Correct ? | 17 Yes | 6 No |
Post New Answer View All Answers
Create a simple code fragment that will swap the values of two variables num1 and num2.
What is the advantage of an array over individual variables?
How do you define a string?
How can I do peek and poke in c?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
Do array subscripts always start with zero?
How can I ensure that integer arithmetic doesnt overflow?
What is the difference between malloc() and calloc() function in c language?
What's the right way to use errno?
What is wild pointer in c?
What are the applications of c language?
Explain what is the difference between functions abs() and fabs()?
how to create duplicate link list using C???
Is javascript written in c?
Once I have used freopen, how can I get the original stdout (or stdin) back?