small range capacitor measurement
But what happened when we use capacitor exchange with resistor in
feedback loop?

The op-amp will not be able to control the DC level fed back to the inverting input and, pretty soon, the output will force itself against one of the the power rails in a failed attempt to try and make the inverting input a virtual ground.