Endosperm in gymnosperms develops before fertilisation and is hence, haploid. In angiosperms, the endosperm is formed after fertilisation and it is triploid structure which is formed due to union of a second male nuclei and a diploid secondary nucleus.