更新了文件名。开始了数据结构

This commit is contained in:
lzy
2024-04-14 06:55:53 +08:00
parent 9bc7edbf47
commit 45bcb90c6d
69 changed files with 455 additions and 0 deletions

27
Chapter05/douarr.c Normal file
View File

@@ -0,0 +1,27 @@
#include <stdio.h>
#include <stdlib.h>
#define M 2
#define N 3
int main()
{
// int a[M][N] = {{1, 2, 3}, {4, 5, 6}};
int a[M][N] = {1, 2, 3, 4, 5};
int i, j;
printf("a = %p\n", a);
printf("a+1 = %p\n", a + 1);
for (i = 0; i < M; i++)
{
for (j = 0; j < N; j++)
{
printf("%p --> %d\n", &a[i][j], a[i][j]);
}
printf("\n");
}
exit(0);
}