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

#include<stdio.h>

int main()
{
if(!printf("Hello")
{
printf("Hello");
}
else
printf("World");
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2165


What are the ways to a null pointer can use in c programming language?

899


Explain output of printf("Hello World"-'A'+'B'); ?

1193


Why doesn't C support function overloading?

2200


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

1861


How do you determine whether to use a stream function or a low-level function?

930


What is the full form of getch?

905


Do pointers take up memory?

873


What is #include called?

822


Differentiate between null and void pointers.

895


Create a simple code fragment that will swap the values of two variables num1 and num2.

1069


How can I open files mentioned on the command line, and parse option flags?

837


What is a const pointer in c?

891


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2144


If fflush wont work, what can I use to flush input?

864