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

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

28
Chapter05/char.c Normal file
View File

@@ -0,0 +1,28 @@
#include <stdio.h>
#include <stdlib.h>
// #define N 10
#define N 32
int main()
{
// char str[N] = {'a', 'b', 'c'};
char str[N] = "a";
scanf("%s", str);
// str数组名本身就是地址不需要&str
printf("%s", str);
// gets(str);
// puts(str);
// for (int i = 0; i < N; i++)
// {
// printf("%c ", str[i]);
// }
printf("\n");
exit(0);
}