关于sizeof返回值的显示
#include <stdio.h>
int main(void)
{
char s[] = "How big is it?";
char* t = s;
printf("数组有多大:%lld\n", sizeof(s));
printf("指针有多大:%lld\n", sizeof(t));
return 0;
}使用%lld方式显示
#include <stdio.h>
int main(void)
{
char s[] = "How big is it?";
char* t = s;
printf("数组有多大:%lld\n", sizeof(s));
printf("指针有多大:%lld\n", sizeof(t));
return 0;
}使用%lld方式显示
评论已关闭