This will cause a segfault because you are dereferencing a pointer that has not been initialized.
int *x; // declares pointer X *x = 3; // seg fault here because x contains garbage and points certainly to // invalid memory
This will cause a segfault because you are dereferencing a pointer that has not been initialized.
int *x; // declares pointer X *x = 3; // seg fault here because x contains garbage and points certainly to // invalid memory