The fossil record reveals that the structure of shoulder joints in birds, which is essential for flight, is an adaptation that originated in ___.
​a. ​ancient bats
b. ​nonflying dinosaurs
c. ​nonflying birds
d. ​flying dinosaurs
e. ​ancestral birds