A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.wikibooks.org/wiki/C++_Programming/Code/Standard_C_Library/Functions/isdigit below:

C++ Programming/Code/Standard C Library/Functions/isdigit - Wikibooks, open books for an open world

From Wikibooks, open books for an open world

<

C++ Programming

|

Code/Standard C Library

|

Functions isdigit[edit | edit source] Syntax
#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

Retrieved from "

https://en.wikibooks.org/w/index.php?title=C%2B%2B_Programming/Code/Standard_C_Library/Functions/isdigit&oldid=3676203

"

Category

:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4