The individual carrot flowers are what are called “perfect” flowers. This means they have both male and female parts in the same flower. The male part of the flower, the stamen, will become active and shed its pollen before the stigma. The female part is active and ready to receive pollen. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.