Why do some materials turn black and others white after combustion?

Most solids objects turn black after they are burnt. But some turn white. Why is that ?