Driver code
public static void Main ( ) { int [ ] arr = { 5 , 4 , 10 , 15 , 7 , 6 } ; int n = arr . Length ; int x = 5 ; Console . WriteLine ( " Count ▁ of ▁ pairs ▁ with ▁ given ▁ XOR ▁ = ▁ " + xorPairCount ( arr , n , x ) ) ; } }