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 / vignesh1988i

but yhe printf statement will print one "hello" and one
world.......................... but i said it must enter to
the if part as well as else part controls..............
before a long time baxk itself i tried this method.........
then only i read the question of IBM properly

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can stdout be forced to print somewhere other than the screen?

610


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

1856


Explain the use of 'auto' keyword

665


What are reserved words?

642


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

612






why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

646


What is extern storage class in c?

505


Why is C language being considered a middle level language?

642


What is static and auto variables in c?

551


What is function definition in c?

576


What's the total generic pointer type?

604


explain what are pointers?

610


What is the purpose of the preprocessor directive error?

670


If errno contains a nonzero number, is there an error?

789


The statement, int(*x[]) () what does in indicate?

636