how do whales bats and dolphins use echolocation?

A To scare away predators
B To attract mates
C To orient them selves and find food
D To tell animals of there species where they are