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


Please Help Members By Posting Answers For Below Questions

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

669


How can I change their mode to binary?

682


Write a program to print fibonacci series using recursion?

577


List the difference between a 'copy constructor' and a 'assignment operator' in C?

629


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

619






How are structure passing and returning implemented?

583


Is it better to use malloc() or calloc()?

639


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

745


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

635


Write a program to check prime number in c programming?

583


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

2564


How can you restore a redirected standard stream?

597


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.....

1364


What are loops c?

604


What is a structure member in c?

536