Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Programming/Code/Standard C Library/Functions/isdigit

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

isdigit #include <cctype> int isdigit( int ch ); The function isdigit() returns non-zero if its argument is a digit between 0 and 9. Otherwise, zero is returned. char c; scanf( "%c", &c ); if( isdigit(c) ) printf( "You entered the digit %c\n", c ); Related topics isalnum - isalpha - iscntrl - isgraph - isprint - ispunct - isspace - isxdigit