Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c check if character is a digit

char ch = '1';
if(isdigit(ch))
  printf("numeric");     
else
    printf("alphabet" );
 // output: numeric
CCopy
Source by iq.opengenus.org #
 
PREVIOUS NEXT
Tagged: #check #character #digit
ADD COMMENT
Topic
Name
7+1 =