I have a function Solve(constchar first[], char dar[]) that needs to return the full dar array. I've tested this function and it correctly creates dar to what it needs to be. So at the end of the function I have return dar. However, when compiling that line presents this error:
error: invalid conversion from ‘char*’ to ‘char’
I've tried dereferencing dar, which gets rid of the error but of course only returns the first element of the array. Surely there's a way to return the entire array. Anyone know why this error is occuring?