1 2 3 4

2020年12月23日

C语言之Const修饰指针

摘要: #include <stdio.h>#include <stdlib.h>#include <string.h> #define _CRT_SCURCE_NO_WARINGSint main(){ //const 修饰指针 int x = 10; printf("未被指针修改之前的x的值:%d \n 阅读全文

posted @ 2020-12-23 13:28 三日坊主i 阅读(200) 评论(0) 推荐(0)

C语言之万能指针

摘要: #include <stdio.h>#include <stdlib.h>#include <string.h> #define _CRT_SCURCE_NO_WARINGSint main(){ //万用指针就是可以根据数据类型改变的指针类型 int a = 10; //指向了一个int类型的数据 阅读全文

posted @ 2020-12-23 13:17 三日坊主i 阅读(259) 评论(0) 推荐(0)

C语言之野指针

摘要: #include <stdio.h>#include <stdlib.h>#include <string.h> #define _CRT_SCURCE_NO_WARINGSint main(){ // 野指针就是指针指向了一个空的内存地址,所以形成了一个野指针。 // 野指针和空指针的区别就是,野 阅读全文

posted @ 2020-12-23 12:55 三日坊主i 阅读(169) 评论(0) 推荐(0)

导航