I wrote a C program as follows:
int *a; /* pointer variable declaration */ int b; /* actual variable declaration */ *a=11; a=&b;/* st
int a stores a random integer value. So saying by saying *a, you might be accessing a memory location that is out of bounds or invalid. So it is a seg fault.