The ions present when sodium chloride dissolves in water are: sodium ions, chloride ions, hydrogen ions and hydroxide ions. There are various different ways of carrying out electrolysis.
The volume of hydrogen given off is twice the volume of oxygen given off.