Query: Basics of Inline Functions

Hi There i am using the following code and passing the same arrays one in the main function and other in an inline function however the size of array become 1 if i call the array using inline function , but it works fine if i use it in mail function.
Can you please explain why it is happening and how to get corrrect output in inline function?

++ Please check the code and the output for reference

++ Output

image