int i; scanf ("%d", i); /* should have used &i */