Wild pointer questions and explanation in c language
A pointer in c which has not been initialized is known as wild pointer. For Example:
What will be output of following c program?
#include
int main(){
int *ptr;
printf("%u\n",ptr);
printf("%d",*ptr);
return 0;
}
Output:
Any address
Garbage value
Here ptr is wild pointer because it has not
No comments:
Post a Comment