- #include <stdio.h>
- #include <malloc.h>
-
- typedef void *VPointer;
-
- int main()
- {
- VPointer q = malloc(sizeof(int));
- int *p = (int *)q;
- *p = 10;
- printf("%d\n", *p);
-
- return 0;
- }
在x264中,看到了一些void * 类型的指针,实际上就相当于泛型指针,不可以进行*pointer操作. 程序中采用空指针,是为了声明变量的简便和统一.

![[端游] GGE2互通西游【精修梦江南】最新整理Win系端+安卓苹果PC三端互通+全套源码+搭建教程](https://cdn.jxasp.com:9143/image/20260408/53F3B6B3FF5B241EA5AFA7D519600A03.png)

















