Q:

What is the wild pointer?

0

What is the wild pointer?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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,

int *piData; //piData is wild pointer.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Embedded C interview questions and answers (2022)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is a NULL pointer?... >>
<< What are dangling pointers?...