chenfire, on 22 March 2013 - 12:18 PM, said:
you didn't look at evryting I wrote right?
/>
Wrong. Your call from main() would need to be in a loop because your function is not recursive.




Posted 23 March 2013 - 10:12 AM
Posted 24 March 2013 - 09:32 AM
int binaryXor(int firstnumber[],int secondnumber[],int length){
if(length==-1) return 0;
if(firstnumber[length]!=secondnumber[length])
return 1+2*binaryXor(firstnumber,secondnumber,length-1);
return 2*binaryXor(firstnumber,secondnumber,length-1);
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
