What is the meaning of “wild pointer” in C?

前端 未结 11 1642
终归单人心
终归单人心 2020-11-30 04:14

Can anybody tell me, the meaning of wild pointer in C, how to obtain it and is this available in C++?

11条回答
  •  情歌与酒
    2020-11-30 04:41

    A wild pointer is any pointer that is used (particularly as an L_value {ie (*pointer) = x } ) while having a value that is either not correct or no longer correct. It could also be used to describe the using of memory that is not defined as a pointer as a pointer (possibly by having followed a wild pointer or by using outdated structure definitions).

    There's no official definition. It's just words that we use when referring to certain pointer errors or the results of those errors.

提交回复
热议问题