[quote=引用 7 楼 lin5161678 的回复:] 一个指针一个数组 额 C里面一样可以用 size_t test[] ={1, 1}; 难道有问题??
不妨不要纠结于这样的细节,说说你在干嘛,想干嘛。 也许有更好的思路。
引用 9 楼 breeze505 的回复: 引用 7 楼 lin5161678 的回复:一个指针一个数组 额 C里面一样可以用 size_t test[] ={1, 1}; 难道有问题?? 1.C不支持[]可变数组 2. 那如果我下面要对初始化的值进行修改呢? size_t test[] = {1, 2, 3, 4}; 这个写法在C语言里面是合法的 你想修改就 test……
引用 7 楼 lin5161678 的回复:一个指针一个数组 额 C里面一样可以用 size_t test[] ={1, 1}; 难道有问题?? 1.C不支持[]可变数组 2. 那如果我下面要对初始化的值进行修改呢?
引用 13 楼 breeze505 的回复: 引用 12 楼 crazy_samba 的回复:使用 void * memset ( void * ptr, int value, size_t num ); Fill block of memory Sets the first num bytes of the block of memory pointed by ptr to the sp……
引用 12 楼 crazy_samba 的回复:使用 void * memset ( void * ptr, int value, size_t num ); Fill block of memory Sets the first num bytes of the block of memory pointed by ptr to the specified val……
使用 void * memset ( void * ptr, int value, size_t num ); Fill block of memory Sets the first num bytes of the block of memory pointed by ptr to the specified value (interpreted as an unsigned char).……
一个指针一个数组 额 C里面一样可以用 size_t test[] ={1, 1}; 难道有问题??
69,369
社区成员
243,082
社区内容
加载中
试试用AI创作助手写篇文章吧