Analogies are the result of convergent evolution. Interestingly, though bird and bat wings are analogous as wings, as forelimbs they are homologous. Birds and bats did not inherit wings from a common ancestor with wings, but they did inherit forelimbs from a common ancestor with forelimbs.
The Term is called Niche Full distance of physical and
biological setting in which an organism lives and the way in which the
organisms uses those conditions. Causing species to divide resources,
competition helps determine the number and kinds of species in a community and
the niche eacthcies occupies.
<span> </span>
I believe it’s the first option