#include<iostream>
using namespace std;
void main()
{
char A[4];
char *B="abcdefg";
void *c;
c=new char[100];
cout<<sizeof(A)<<endl;
cout<<sizeof(B)<<endl;
cout<<sizeof(c)<<endl;
cout<<strlen(A)<<endl;
cout<<strlen(B)<<endl;
//cout<<strlen(c)<<endl;
}
最后
以上就是沉默仙人掌最近收集整理的关于数组,指针sizeof的全部内容,更多相关数组内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复