Hi All,
int *p = 100;
printf("%d\n", *p) //It will give segmentation fault
printf("%d\n", p) ; //It will print 100;
here *p behaving as normal variable. why so?
Thanks,
Manjunath
int *p = 100;
printf("%d\n", *p) //It will give segmentation fault
printf("%d\n", p) ; //It will print 100;
here *p behaving as normal variable. why so?
Thanks,
Manjunath
Comment