What is electron affinity?

Athe energy change that happens when a neutral atom gains an electron
Bthe energy change that happens when a neutral atom loses 2 electrons
Cthe energy change that happens when an atom with a positive charge gains an electron
Dthe energy change that happens when an atom with a negative charge gains an electron?