The long necked giraffes evolved from ancestors having short height & short neck and were feeding grass. As a result of environmental changes, the grass vegetation is lost & the number of trees is reduced. The continuous stretching of neck & fore limbs by their ancestors to catch (feed) high located leaves of the desert plants caused elongation of the neck and the fore limbs have become longer than the hind legs.