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


Please Help Members By Posting Answers For Below Questions

Why we use conio h in c?

912


what is a constant pointer in C

915


the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b

2402


What are the types of i/o functions?

991


What is string function c?

804


Is it possible to have a function as a parameter in another function?

855


What is external variable in c?

833


5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

1853


When should structures be passed by values or by references?

837


What is the translation phases used in c language?

860


What are control structures? What are the different types?

860


What are lookup tables in c?

773


What is the difference between procedural and functional programming?

754


What are identifiers c?

875


Tell me with an example the self-referential structure?

774