During melting the ice absorbs heat to change its state from solid to liquid. Hence, it is an endothermic process.
During formation of ice the water loses heat and changes its state from liquid to solid. In other words, the formation of ice involves liberation of heat. Therefore, it is an exothermic process.
Photosynthesis is the process in which carbon dioxide (CO2), water (H2O) reacts in the presence of sunlight to form carbohydrate (glucose) (C6H12O6) and oxygen (O2). The reaction involved is:
6CO2(g) + 6H2O(l)Sunlight−−−−−→C6H12O6(s) + 6O2(g)
Since photosynthesis is initiated by light, it is a photochemical process.