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 the use of getchar() function?
Tell me what is the purpose of 'register' keyword in c language?
Was 2000 a leap year?
What is indirection in c?
Is null equal to 0 in sql?
Can stdout be forced to print somewhere other than the screen?
What is getch() function?
What is stack in c?
what is event driven software and what is procedural driven software?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What are identifiers and keywords in c?
How can I copy just a portion of a string?
Write a program for finding factorial of a number.
What is the value of uninitialized variable in c?
What are the rules for identifiers in c?