/* File: scan4.c One problem with scanf. */ #include main() { int c = 0, d = 0, r ; printf("Enter an integer: ") ; r = scanf("%d", &c) ; printf("r = %d c = %d\n", r, c) ; printf("Enter an integer: ") ; r = scanf("%d", &d) ; printf("r = %d d = %d\n", r, d) ; }