Answer: D. store electric charges.
The main function of a capacitor in an electric circuit is the storage and release of electricity in that circuit. The capacitor also helps in passing alternating current without passing a direct current. The capacitor is indispensable in being a part of electronic equipment. This is used invariably in an electric circuit.