|
Answer» A pointer is known as wild pointer c, if it has not been initialized. For Example: int main() { int *PTR; printf("%un",ptr); printf("%d",*ptr); return 0; } Output: Any ADDRESS, GARBAGE value. Here ptr is wild pointer, because it has not been initialized. Wild pointer is not the same as NULL pointer. Because, NULL pointer doesn't point to any location, but a wild pointer points to a specific memory location but the memory MAY not be available for CURRENT application, which is very fatal. A pointer is known as wild pointer c, if it has not been initialized. For Example: int main() { int *ptr; printf("%un",ptr); printf("%d",*ptr); return 0; } Output: Any address, Garbage value. Here ptr is wild pointer, because it has not been initialized. Wild pointer is not the same as NULL pointer. Because, NULL pointer doesn't point to any location, but a wild pointer points to a specific memory location but the memory may not be available for current application, which is very fatal.
|