Pointer initialization in C
Just a simple program to see the effects of pointer initialization in C. Program: #include void main() { int *p; printf(“&p = %p, p = %p\n”, &p, p); /* // This will cause segmentation fault *p = 5; printf(“*p = %d\n”, *p); */ int *q = 0; printf(“&q = %p, q = %p\n”, &q, q); …