摘要:
函数指针的概念 顾名思义,函数指针就是指向函数的指针,该指针的值是函数的入口。下面的代码时函数指针的一个基本实例。 #include <stdio.h> int max_(int a, int b); int max1_(int (*func_p)(int, int), int a, int b); 阅读全文
posted @ 2023-09-22 23:13
Guanjie255
阅读(155)
评论(0)
推荐(0)
摘要:
也许一个不兼容的指针可以访问变量 #include <stdio.h> #include <stdlib.h> typedef struct father { int age; char* name; } father; typedef struct student { int age; doubl 阅读全文
posted @ 2023-09-22 23:13
Guanjie255
阅读(33)
评论(0)
推荐(0)

浙公网安备 33010602011771号