A function to determine whether a character is a decimal number ------isdigit()

Required header files

#include <ctype.h>

Function prototype

int isdigit ( int c );
isdigit() 用来检测一个字符是否是十进制数字。

Decimal numbers include: 0 1 2 3 4 5 6 7 8 9
Example:

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_46527915/article/details/115310645