In a situation where liquids are poured on top of each other and form separate layers, the liquid that has the lowest density will be the one that floats on top. Therefore, the liquid that had the lowest density is:
C. the layer at the top of the glass.