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;}