Carbon does react with hydrochloric acid. When carbon reacts with hydrochloric acid, it produces hydrogen gas and carbon dioxide gas. The chemical equation for this reaction is:
```
C + 2HCl → H₂ + CO₂
```
This reaction is slow at room temperature, but it can be sped up by heating the mixture or by adding a catalyst.