2018年4月8日

C指针3

摘要: #include <stdio.h>#include <stdlib.h> typedef struct{ int age; char* name[20]; } student;int main(){ student lisa = {18,"lisa"}; /* * 结构体成员在存储空间中是连续的 阅读全文

posted @ 2018-04-08 11:37 黄志平 阅读(112) 评论(0) 推荐(0)

C指针2

摘要: #include <stdio.h>#include <stdlib.h> char name[10] = "lisa";//内容:'l' 'i' 's' 'a' 0 0 0 0 0 0 int ko[10] ;//函数声明void reset1(char *p);void last_lisa(); 阅读全文

posted @ 2018-04-08 11:36 黄志平 阅读(98) 评论(0) 推荐(0)

C指针1

摘要: #include <stdio.h>#include <stdlib.h>void reset(char x);void rest(char *x);int main111(void){ char a = 'a'; int b = 128; printf("a变量的地址是:%d\n",&a); pr 阅读全文

posted @ 2018-04-08 11:12 黄志平 阅读(105) 评论(0) 推荐(0)

导航