热门

最新

红包

立Flag

投票

同城

我的

发布
uxiang_blog
uxiang_blog
3 年前
trueuxiang_blog

Aug26,2023,Day048
注意图一:char,int这里没有影响!
图七完整代码:
#include "stdio.h"
int main() {
char str[] = "hello";
char *s = "hello";
int a[] = {3, 5, 7};
printf("%d\n%d\n%d\n", sizeof(str), sizeof(s), sizeof(a));//输出6, 4, 12
return 0;
}

CSDN App 扫码分享
分享
4
2
打赏
  • 复制链接
  • 举报
下一条:
沉默内向不会说话该怎么办?来自社区: 演讲与口才, 频道: 学习打卡, https://bbs.csdn.net/topics/617142616
立即登录