XOR gate is used to determine odd no. of 1's in input ,
where as XNOR gate it used to determine even no. of 0's in input
For , "n" : No. of Inputs . We have two cases :
CASE 1 : When "n" is even :
(i) Then if no. of 1's Odd , no. of 0's also odd : Then result of XOR = 1 , XNOR = 0
(ii) if no. of 1's even and no. of 0's also even : Output of XOR = 0 , XNOR =1
CASE 2 : When "n" is odd :
(i) If no. of 1's Odd and then no. of 0's is even : Then result of XOR = 1 , XNOR = 1
(ii) if no. of 1's even and no. of 0's is Odd : Output of XOR = 0 , XNOR =0