C++ 查看数据类型长短 , python的len的封装原理

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C++ 查看数据类型长短 , python的len的封装原理相关的知识,希望对你有一定的参考价值。

 

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的封装原理的主要内容,如果未能解决你的问题,请参考以下文章