How far is the three point line to the basket?

In the NBA it's around 23 ft., in the NCAA it's around 20 ft.