How does the capacitor work?
If the capacitor is discharged, then there is no voltage across it, because that's what "discharged" means.  So you are right;  the voltage is zero until the switch is turned on.