首页
IT
登录
6mi
u
盘
搜
搜 索
IT
sizeof('') strlen("")
sizeof('') strlen("")
xiaoxiao
2021-04-15
30
#include<iostream> using namespace std; void main(){
cout << sizeof('\0') << endl; //输出1
//cout << strlen('\0') << endl; 运行时出错
cout << strlen("\0") << endl; //输出0
system("pause"); }
转载请注明原文地址: https://ju.6miu.com/read-671459.html
技术
最新回复
(
0
)