#include <stdio.h>
#include <string.h>
int main ()
{
char str[50]={0x01,0x02,0x03};
int len;
printf("strlen(str) = %d\n",strlen(str));
printf("sizeof(str) = %d\n", sizeof(str));
return(0);
}
相关文章
- 01-28-L -Wl,-rpath-link -Wl,-rpath区别精讲
- 01-28【DB笔试面试746】在O中,“...SWITCH LOGFILE”与“... ARCHIVE LOG CURRENT”区别
- 01-28gcc -L、-Wl,-rpath, -Wl,-rpath-link的区别
- 01-28OA、CRM、ERP之间的区别和联系是什么?
- 01-28NAND Flash与eMMC的区别
- 01-28vue的proxy和defineProperty区别
- 01-2892、构造函数、拷贝构造函数和赋值操作符的区别
- 01-28css中单位px,em, rem的区别
- 01-28OPENCV学习之findContours()轮廓检索模式区别
- 01-28make和new的区别