Combination of fuel cells with means for production of reactants or for treatment of residues with means for production of gaseous reactants by dissolution of metals or alloys; by dehydriding metallic substances