| 1. |
What Is Wild Pointer? |
|
Answer» A pointer that is not initialized to any valid address or NULL is considered as wild pointer. CONSIDER the following code FRAGMENT - int *p; *p = 20; Here p is not initialized to any valid address and STILL we are trying to access the address. The p will get any GARBAGE LOCATION and the next statement will corrupt that memory location. A pointer that is not initialized to any valid address or NULL is considered as wild pointer. Consider the following code fragment - int *p; *p = 20; Here p is not initialized to any valid address and still we are trying to access the address. The p will get any garbage location and the next statement will corrupt that memory location. |
|