Read a single user input using scanf and convert it into appropriate data type

后端 未结 0 868
抹茶落季
抹茶落季 2020-12-09 22:25

I have a program that reads user input as such:

char c;
scanf("%c", &c);

and then checks if it is a digit:

if(is         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题