下面强制类型转换请举例说明

2025-02-25 00:46:43
推荐回答(1个)
回答1:

给你举个最简单的例子吧
int *p = (int *)malloc(10);malloc就是一个void函数,返回一个void的指针类型,现在强行转换成int型