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

前端 未结 11 1662
终归单人心
终归单人心 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

    Wild pointer is a pointer which declaration is present but it has not been defined yet.Means we have declare a pointer - data_type *ptr; //but not define which address it is containing *ptr=100//wild pointer does not point to any valid address.so we will get ERROR printf("ptr:%d",ptr);//we will get:0(in gcc compiler)

提交回复
热议问题