Which of the following quantity determines the direction of flow of heat?
Difference in temperature between the two bodies
When two bodies at different temperatures are kept in contact, heat flows from the body at a higher temperature to the body at a lower temperature. Thus, it is the temperature which determines the direction of flow of heat.