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 / gg
#include<stdio.h>
main()
{
if(printf("hello")==0)
printf("hello");
else
printf("world");
}
Think is there any Other.....
Is This Answer Correct ? | 62 Yes | 10 No |
Post New Answer View All Answers
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
How can I change their mode to binary?
Write a program to print fibonacci series using recursion?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
How are structure passing and returning implemented?
Is it better to use malloc() or calloc()?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
How do you determine whether to use a stream function or a low-level function?
Write a program to check prime number in c programming?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
How can you restore a redirected standard stream?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
What are loops c?
What is a structure member in c?