The elements present in protein are carbon, hydrogen and oxygen. Whereas carbohydrate consist of carbon, hydrogen and oxygen.
Carbohydrate is the primary source of energy for the living organisms and proteins form the structural and functional units of the body of the living organisms such as nails, hairs, enzymes, etc.