A pointer that is not initialized properly before its first use is known as the wild pointer. Uninitialized pointer’s behavior is totally undefined because it may point some arbitrary location that can be the cause of the program crash, that’s is the reason it is called a wild pointer.
In other words, we can say every pointer in programming languages that are not initialized either by the compiler or programmer begins as a wild pointer.
Note: Generally, compilers warn about the wild pointer.
Answer:
A pointer that is not initialized properly before its first use is known as the wild pointer. Uninitialized pointer’s behavior is totally undefined because it may point some arbitrary location that can be the cause of the program crash, that’s is the reason it is called a wild pointer.
In other words, we can say every pointer in programming languages that are not initialized either by the compiler or programmer begins as a wild pointer.
Note: Generally, compilers warn about the wild pointer.
Syntax,
need an explanation for this answer? contact us directly to get an explanation for this answer