Wild Pointer:
A pointer in c which has
not been initialized is
known as a wild pointer.
Example:
C program:
#include<stdio.h>
int main(){
int *ptr;
printf("%u\n",ptr);
printf("%d",*ptr);
return 0;
}
Output: Any address
Garbage value
Here ptr is a wild pointer
because it has not been
initialized.
0 comments:
Post a Comment