What do you expect the scanf() line to achieve?

Of less direct relevance to your question, why do your format strings include asterixes?