In C-AFM, a conductive tip scans the surface of the sample while a voltage is applied between the tip and the sample. The resulting current that flows through the tip provides information about the sample's local electrical properties. The feedback system in the AFM maintains a constant force between the tip and the sample, allowing for high-resolution topographical and electrical measurements simultaneously.