另外,我在linux下的GDB环境中,用p 命令查看一个void *型的变量的时候,提示为:"attempt to dereference a generic a pointer " ,我该怎样才能查看这一类型的变量的内容呢?
...全文
10819打赏收藏
请教 void * 的作用和用法
我最近在读一段程序,它用了很多void *类型,请教各位大虾关于这种类型的作用和用法!(感觉它的作用是,先不确定类型,留作以后赋值时再确定,请大家指教!) 另外,我在linux下的GDB环境中,用p 命令查看一个void *型的变量的时候,提示为:"attempt to dereference a generic a pointer " ,我该怎样才能查看这一类型的变量的内容呢?