Which of the following is a major function of skin?

A) production of red blood cells

B) formation of vitamin C

C) gas exchange

D) body temperature regulation