/* File: scanf2.c This program demonstrates the use of the scanf function. */ /* Include only the standard library */ #include main() { int n ; double x ; printf("Enter an integer: ") ; scanf("%d", n) ; printf("n = %d", n) ; } ------------------------------------------ lassie% cc scanf2.c lassie% a.out Enter an integer: 5 Segmentation fault (core dumped) lassie%