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

What is #define?

567


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

587


Why do we use namespace feature?

573


Is c object oriented?

528


What are linked lists in c?

641






What is a structure member in c?

536


Why is c fast?

594


Can you please compare array with pointer?

605


What is the process to generate random numbers in c programming language?

599


Is this program statement valid? INT = 10.50;

677


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

668


Write a code to determine the total number of stops an elevator would take to serve N number of people.

720


What do you mean by command line argument?

633


Why cant I open a file by its explicit path?

586


How can you draw circles in C?

609