阅读背景:

将int数组转换为C中的指针

来源:互联网 
void test()
{
       int buf[1000];

       //populate buf
       foo(buf);//is this correct? Can we pass buf as a pointer that foo expects?



}
void foo(void*ptr)
{}
void test()
{
       int buf[1000];

       //p



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: