Rust: array, dynamic array, string -- thoroughly combing concepts and methods
Arrays and strings are essentially the same. They all correspond to a continuous piece of memory. In C language, a string is an unsigned char ending in a number zero Array, that is, Rust's u8 array.
C language array is a pointer. As for the size of the array, it is up to the programmer to manage it. The advantage of this is that the gra ...
Posted by storyteller on Thu, 09 Sep 2021 21:25:38 -0700