Replies: 1 comment
-
Hi, the main difference is that arrays are allocated on the stack every time, that's why we have to specify the size in compile time i.e. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I thought I understood the idea of Slice (pointer + length), but then I got confused
when I saw that memory can be allocated for a slice.
So, what's the difference between slice and array?
Beta Was this translation helpful? Give feedback.
All reactions