sizeof('') strlen("")

    xiaoxiao2021-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)