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
Are c and c++ the same?
What are the 5 organizational structures?
What are the different types of pointers used in c language?
What is #include conio h?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What is operator precedence?
Define C in your own Language.
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
Why c is procedure oriented?
I need a sort of an approximate strcmp routine?
How do we print only part of a string in c?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What does the characters “r” and “w” mean when writing programs that will make use of files?
Write a code to remove duplicates in a string.