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
difference between native and cross compilers
What is function what are the types of function?
Why is it important to memset a variable, immediately after allocating memory to it ?
How do you define a string?
Can a program have two main functions?
Why main is not a keyword in c?
Explain how can you be sure that a program follows the ansi c standard?
What is wrong in this statement? scanf(ā%dā,whatnumber);
Can we change the value of constant variable in c?
When should you not use a type cast?
If errno contains a nonzero number, is there an error?
Explain the Difference between the New and Malloc keyword.
What are linked lists in c?
How #define works?
Explain what is output redirection?