What is the voltage across a resistor with no current flowing through it?

V = I * R

Since the current (I) is zero, any value multiplied by zero will result in zero voltage across the resistor. In summary, when no current flows through a resistor, the voltage across it is zero. This is true for any ideal resistor in an ideal circuit.