野(wild)指針與懸空(dangling)指針

1. 什麼是野指針(wild pointer)? A pointer in c which has not been initialized is known as wild pointer. 野指針(wild pointer)就是沒有被初始化過的指針。例如, o foo1.c 1 int main(int argc, char *argv[]) 2 { 3 int *p; 4 r
相關文章
相關標籤/搜索