Hello, I am working on a project that involves creating both a client and server in C. The client must get from the user:
A = int
B = double
C = int
D = double

Then it must send all the values to the server in one send. The server will then return the result of ((B^A)-(D^C)) to the client. I'm not looking for any code, just advice on how to send all the values in a single send. I was thinking I should use an unsigned char array.

On the client side, create a string that contains all the values separated by a space. Then send that string to the server. On server side, convert the string to individual data values, make the computations, then create a string with the result value and send back to the client.