I am pretty sure it is possible (forgive my ignorance, I don't program in C/C++ much), just not the way you are attempting it. When you call a return it exits the function right after the return is complete, meaning that right now your code it returning
a[] and not the second line. What I would try (If I was you) is to combine the 2 arrays into a single, multidimensional array so that it can be returned in a single line of code, then split them apart afterwards.
Something like so:
CODE
return c[2] = [a, b];
Then you can split them outside of the function lik eos:
CODE
r_Val = my_function(3.014, 6.28);
a = r_Val[0];
b = r_Val[1];
(Or however it works in C)
As I said, I am not a pro at C/C++, but that is the basic idea that I would use.
Hope that helps.