int main(int argc, char const *argv[]) { int c[] = {1, 2, 3, 4, ‘a‘}; int d; d = sizeof c / sizeof *c; std::cout << d << ‘\n‘; // 答案: 5 return 0; }
标签:sizeof return ons har nbsp 封装 查看 post size
int main(int argc, char const *argv[]) { int c[] = {1, 2, 3, 4, ‘a‘}; int d; d = sizeof c / sizeof *c; std::cout << d << ‘\n‘; // 答案: 5 return 0; }
C++ 查看数据类型长短 , python的len的封装原理
标签:sizeof return ons har nbsp 封装 查看 post size
原文地址:https://www.cnblogs.com/renfanzi/p/8301521.html