How can I use scanf to read either an int or a string?
What I'm trying to do is:
printf("Enter Your Guess, 0 - 100: "); /* Input your guess */
scanf("%as", &pass);
printf("%s", pass);
In this program the player can either chose to enter a number or pass how can I scan either the number or the word pass. Is there and if statement I can put in or something I've been going into this for like 1 hour
fgetsfollowed by combination ofstrcmpandstrtoul.