Google News
logo
Embedded C - Interview Questions
What Is Wild Pointer?
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.
Advertisement