Difference between automatic arrays on the heap and allocatable arrays

Thank you for the comments. You are right. This case is even more interesting than the senario where the arrays are only local variables. I have edited my post to include such functions.

1 Like