#include <stdlib.h>
int main(){
int a=344;
int *ptr; // this is a wild pointer
// *ptr=34; // this is not a good thing to do
ptr=&a; // ptr is not longer a wild pointer
printf("value of a is %d\n",*ptr);
return 0;
}
#include <stdlib.h>
int main(){
int a=344;
int *ptr; // this is a wild pointer
// *ptr=34; // this is not a good thing to do
ptr=&a; // ptr is not longer a wild pointer
printf("value of a is %d\n",*ptr);
return 0;
}