Conceptually, hydrogen gas can replace gasoline in carnot cycle engines. So, essentially by replacing the gasoline with hydrogen, we can eliminate the dependency on gasoline and most of the carbon emissions. There are 2 questions though:
1. Is there a really really cheap/simple way to produce Hydrogen?
2. Can the Hydrogen produced be stored in a safe manner in a tank?