Zinc and iron also react with hydrochloric acid. Magnesium, zinc and iron also react with sulfuric acid. The products are a salt (in this case a sulfate) and hydrogen. For example: ...
In this reaction, carbon is oxidised because it gains oxygen. At the same time, copper oxide is reduced because oxygen is removed from it.