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 / vignesh1988i
but yhe printf statement will print one "hello" and one
world.......................... but i said it must enter to
the if part as well as else part controls..............
before a long time baxk itself i tried this method.........
then only i read the question of IBM properly
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
what will be maximum number of comparisons when number of elements are given?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
Should I learn c before c++?
Why is c so powerful?
What is the difference between pure virtual function and virtual function?
Why is struct padding needed?
What is pointer & why it is used?
How do you define CONSTANT in C?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
Can the sizeof operator be used to tell the size of an array passed to a function?
Can we replace the struct function in tree syntax with a union?
How can I direct output to the printer?
How will you delete a node in DLL?
Why does not c have an exponentiation operator?
How can I manipulate individual bits?