CPP program to print the Leftover element after performing alternate Bitwise OR and Bitwise XOR operations to the pairs .
#include <bits/stdc++.h> NEW_LINE using namespace std ; #define N  1000 NEW_LINE int lastElement ( int a [ ] , int n ) {