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
Why we use conio h in c?
what is a constant pointer in C
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
What are the types of i/o functions?
What is string function c?
Is it possible to have a function as a parameter in another function?
What is external variable in c?
5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.
When should structures be passed by values or by references?
What is the translation phases used in c language?
What are control structures? What are the different types?
What are lookup tables in c?
What is the difference between procedural and functional programming?
What are identifiers c?
Tell me with an example the self-referential structure?