Which of the following is a secure way to use scanf?
scanf("%.8s", name);
scanf("%8s", name);
scanf("%8c", name);
scanf("%s", name);