B, autotrophs can also use chemical energy, such as nitrifying bacteria, B error;
C, autotrophs can also use light energy, C is wrong;
D the difference between autotrophs and heterotrophs is that autotrophs can use inorganic carbon to synthesize organic carbon, while heterotrophs can only use organic carbon, and inorganic carbon cannot synthesize organic carbon. D is correct.
Therefore, choose: d.