What is (void*) casting used for?

前端 未结 4 1865
有刺的猬
有刺的猬 2021-02-09 12:11

I did try searching for this on Stack Overflow, but I think due to the syntax and not knowing exactly what to search I became a little unstuck.

I have seen (v

4条回答
  •  情书的邮戳
    2021-02-09 12:54

    It's the most generic way of providing a pointer to an object in C/C++. Like object in C# or Java.

提交回复
热议问题