In an RC series circuit, where the switch is initially open and then closed, what happens to the capacitor over time?
A) The capacitor discharges immediately.
B) The capacitor charges exponentially to the applied voltage.
C) The capacitor remains uncharged.
D) The capacitor charges linearly over time.