Who invented candy corn and what is it made of?
The National Confectioners Association claims that candy corn was invented (allegedly) in the 1880s in Philadelphia by George Renninger, by a Wonderlee Candy Company employee. Soon after, it was spread through mainstream America by the Goelitz Confectionary Company (which would later turn into Jelly Belly, famed makers and seller of jelly beans).
In those days, the candy corn was made, essentially, by mixing sugar, water, and corn syrup in a giant kettle, then adding fondant and marshmallow to solidify that mixture. Food coloring was added to the slurry, and poured into a mold (meaning, each of the three sections were dyed and molded individually, before being added together).
The process of modern candy corning is basically the same today -- but naturally, all this is done via machine, in almost half the time. So if nothing else, science has given us a more efficient candy corn-making process.
Basically, candy corn is like hardened, super-sweet, tricolored cake fondant. That's it. And each "segment," is exactly the same, aside from coloring.