摘要: 程序task1_1.c中,执行++p后,指针变量p中存放的地址值是2004; 程序task1_2.c中,执行++p后,指针变量p中存放的地址值是2001; 因为两程序中指针变量p所指向的变量类型不同,分别为整形和字符型,存放整形变量需要4个字节的空间而存放字符型变量需要1个字节的空间。 程序task 阅读全文
posted @ 2022-06-14 09:43 易易爱学习 阅读(32) 评论(3) 推荐(0) 编辑
摘要: #include<stdio.h> #define N 5 #define M 80 typedef struct { char name[M]; char author[M]; }Book; int main() { Book x[N]= {{"一九八四","乔治.奥威尔"}, {"美丽新世界", 阅读全文
posted @ 2022-06-06 18:30 易易爱学习 阅读(13) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void printText(int line, int col, char text[]); void printS 阅读全文
posted @ 2022-05-09 22:35 易易爱学习 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void printText(int line, int col, char text[]); void printS 阅读全文
posted @ 2022-04-26 11:37 易易爱学习 阅读(10) 评论(1) 推荐(0) 编辑
摘要: #include<stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int grade, number; int i; srand(time(0)); // 以当前系统时间作为随机种子 for(i=0; i 阅读全文
posted @ 2022-04-18 18:02 易易爱学习 阅读(27) 评论(1) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { printf(" O \t"); printf(" O \n"); printf("<H>\t"); printf("<H>\n"); printf("I I\t"); printf("I I\n"); return 0; } #inc 阅读全文
posted @ 2022-03-28 21:21 易易爱学习 阅读(16) 评论(1) 推荐(0) 编辑