Question: how xor gate is used as an inverter?
Answer: XOR gate can act an inverter as well as a buffer. If one fixes one input of the XOR gate to logic high it works as an inverter. 1 XOR 0= 1, So if one input of the XOR gate is fixed to logic 1 , the output is the logical inversion of the second input.