Petals and sepals are the non-reproductive parts of the flower and stamen and pistil are the reproductive parts of the flower.
A carpel is composed of stigma, style and ovary. Pistil (female reproductive part) is made up of one or more carpels.
The swollen base of car[el is known as the ovary, which contains the ovule.
The swollen base elongates upwards into a tube-like structure known as style.
The tip of style is known as the stigma, which acts as a platform for receiving pollen grains
Function of style in flowers:
It is a tube-like structure in which connects stigma and ovary.
The style is particularly crucial throughout the fertilization process because it not only generates the pollen tube but also prevents incompatible pollen from entering the ovary.
Allows growth of pollen tube and helps it to reach ovary.