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
What is pass by reference in functions?
What is the scope of static variable in c?
What is the use of gets and puts?
How are pointers declared in c?
Why can’t constant values be used to define an array’s initial size?
Why is it important to memset a variable, immediately after allocating memory to it ?
How can I recover the file name given an open stream?
How can I discover how many arguments a function was actually called with?
Why is structure important for a child?
Explain what is a 'locale'?
What is the use of header files?
What is binary tree in c?
Can the size of an array be declared at runtime?
What is pointer to pointer in c with example?
Explain can you assign a different address to an array tag?