Why do we have pointers other than void

前端 未结 10 965
攒了一身酷
攒了一身酷 2020-12-30 22:54

I know that we have different pointers like int, float, and char. A void pointer is the only pointer which can hold all o

10条回答
  •  攒了一身酷
    2020-12-30 23:02

    Two Words: Type Safety

    There's a little tidbit on type safety (or lack thereof) in C on Wikipedia that might shed some light for you.

提交回复
热议问题