wild pointer
Sat Jun 11 2022 06:25:03 GMT+0000 (Coordinated Universal Time)
Saved by
@KanishqJ8
#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;
}
content_copyCOPY
Comments