unsigned char数组赋值
时间: 2023-04-04 17:01:26 浏览: 276
c代码-char和unsigned char区别
5星 · 资源好评率100%
可以使用以下语法来给 unsigned char 数组赋值:
unsigned char arr[] = {1, 2, 3, 4, 5};
或者使用循环来逐个赋值:
unsigned char arr[5];
for(int i=; i<5; i++){
arr[i] = i+1;
}
阅读全文
c代码-char和unsigned char区别