There are 2 empty jars of 5 and 3 liters capacity. And a
river is flowing besides. I want to measure 4 liters of
wanter using these 2 jars. How do you do this?
Answers were Sorted based on User's Feedback
Answer / sonia
fill 5 liters jar and pour in 3 liters------ now you have 3 in 3 liters and 2 in 5 liters.
pour away the 3 in 3 liters jar and transfer the 2 in the now empty 3 liters.
Fill 5 liters jar again and pour in 3 liters jar----- Now you have 1 from 5 liters and 2 that were in 3 liters jar already. this gives you 4 in the 5 liters jar.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / guest
First fill up the 5 liters jar and start filling 3 liters
jar. so now second jar has 3 liters and first jar has 2
liters. Now again fill 5 liters fully and to complete
second jar 1 liter is needed. So, put water in second jar
from first jar. so, 3 liters jar is full now. And first jar
has 4 liters water.
| Is This Answer Correct ? | 4 Yes | 6 No |
A file pointer always contains the __________ of the file
Can we call a base class method without creating instance?
why destructor is not over loaded?
what is the use of template classes in c++
Write a program to demonstrate the use of 'Composition' in C++
sir i want to know which posting to apply since i am BE CSE.. also want to know what are the rounds there for my interview...Expecting for ur valuable answer....
What is interface? When and where is it used?
how does a main() in C++ is different from main() in C?
In OverLoading concept,Why they are not consider return value and why they are consider only parameters in method? For ex: public int Add(int a,int b){...} public String Add(int a,int b){...}
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?