I am doing a C course. I need to do a recursive XOR binary but I have some limitations. I can't use loop or any math.h functions, nor can I call another function from the XOR function.
This is the function prototype:
int binaryXor(int firstnumber[], int secondnumber[], int length);
where firstnumber and secondnumber are arrays with the same length of 1s and 0s and length is their length.
The function should return the decimal value of the XOR of those two arrays. Doing the XOR is quite simple, but how can I convert it to decimal with all the limitations?