Typically, when organic molecules get oxidized or reduced, the oxidation numbers of carbon atoms changes, while those of hydrogen (+1) and oxygen (typically -2) don't change.
The oxidation number is a formal number (not measurable), and does not imply certain charges on certain atoms. The atoms in organic molecules are held together by covalent bonds, so the electrons are not "assigned" to a given atom.
One easy way to figure out the oxidation number of a carbon (with four bonds and no formal charge) in a given Lewis structure is to start at zero, add one for each bond with oxygen, and subtract one for each bond with hydrogen.
The Lewis structure of the reduced form has two carbons at an oxidation state of +1, and they change to +2 in the oxidized forms shown below:
The image shows three forms of the oxidized vitamin C (with a nod to the other answer) but in all of them, the bottom two carbon atoms show two bonds to oxygen each (either two single bonds or one double bond) and no bonds to hydrogen.
The reactions that are shown, hydrolysis and hydration, don't change the oxidation state of the carbon atoms.