I was using the RS485 communication model by Nick Gammon.But I am unable to understand the memory allocation. He is sending 3 ints, but declaring byte buf[10]. Why 10? Is it a normal array? Why not 3?
I am not familiar with the particular code you are referring to, but remember that an int takes 2 bytes.
So to send/receive 3 ints you need at least a buffer 6 bytes long.
So, can I declare extra ,like Nick did, byte buf[10]?