摘要: 1 #include <stdio.h> 2 3 int main(void) 4 { 5 char a[] = "hello"; //字符串以字符串数组的形式保存,末尾加上'\n' 6 printf("%d\n", sizeof(a)); 7 8 for (int i = 0; i < sizeo 阅读全文
posted @ 2019-12-17 16:06 jason2018 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 void minmax(int *a, int len, int *min, int *max); 3 int main(void) 4 { 5 int a[] = { 6 1, 7 2, 8 3, 9 4, 10 5, 11 6, 12 7, 13 8 阅读全文
posted @ 2019-12-17 14:48 jason2018 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 3 int main(void) 4 { 5 6 int a[10]; 7 8 printf("%p\n",&a); 9 printf("%p\n",a); 10 printf("%p\n",&a[0]); 11 printf("%p\n",&a[1]) 阅读全文
posted @ 2019-12-17 09:21 jason2018 阅读(183) 评论(0) 推荐(0) 编辑