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
What is #define?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
Why do we use namespace feature?
Is c object oriented?
What are linked lists in c?
What is a structure member in c?
Why is c fast?
Can you please compare array with pointer?
What is the process to generate random numbers in c programming language?
Is this program statement valid? INT = 10.50;
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
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What do you mean by command line argument?
Why cant I open a file by its explicit path?
How can you draw circles in C?