Can anybody share idea on How do i write code to make crossover of halves of two binary numbers.
for instance:-
data1= '00001111'
data2= '11110000'
the final value after crossover will be
data1='00000000'
data2='11111111'
i tried below code but no success
Code: Select all
res = strncpy(data1,data2,4);
// memcpy(data1,data2, 2);