The creeping fig, Ficus pumila is a common exotic fig used to cover the surfaces of overhead bridges and other structures.
QY sliced up it up into half for us to see the anatomy inside. These syconia contain both male and female flowers. The red ones are the female flowers and the white ones at the tip of the fruit where an opening called ostium are the male flowers. It is said that there are about 1000 male and 6000 female flowers in each fruit!
Many figs including this have mutualistic relationships with agaonid fig wasps. The female will squeeze through the ostia and lay eggs in the female flowers and die inside the fruit. Upon hatching, the males will mate with the young females and chew an opening to the ostia for their mates to escape. In the process, the females have to pass through the male flowers whereby pollen will be stuck on them.
And thus the female fly off to look for fig fruit to repeat the cycle, also bringing the pollen to fertilise other fig trees. The males which are wingless, die after fulfilling their husbandly role.