char ch = '1';
if(isdigit(ch))
printf("numeric");
else
printf("alphabet" );
// output: numeric
CCopy
char ch = 'Z';
if(isalpha(ch))
printf("alphabet");
else
printf("Numeric" );
//output: alphabet
CCopy
char ch = '/';
if(isalnum(ch))
printf("numeric or ap=lphabet");
else
printf("other symbol" );
//output: other symbol
CCopy
Code Example |
---|
C :: snprintf c |
C :: get boolean from localstorage |
C :: virtualbox how to move vmdk to another folder |
C :: c command line arguments parser |
C :: finding characters in string |
C :: how to make two arrays equal in c |
C :: rust unit test display |
C :: node in c |
C :: sphinx-doc |
C :: linear and binary search |
C :: example of source file |
C :: len of str vbs |
C :: type cast in c |
C :: c get int inpot |
C :: Multiplying a u64 to u128 in Rust |
C :: Tensorflow: What are the "output_node_names" for freeze_graph.py in the model_with_buckets model? |
C :: how to pprint otu a double in in c |
C :: konami code hdl |
C :: first come first serve |
C :: curl ftp upload file to directory |
C :: 157.245.33.77: |
C :: Implement N-Queen Problem |
C :: getopt optstr |
C :: manasa loves maths solution IN C |
C :: obby übersetzung |
C :: difference between %f and %lf |
C :: c logarithm check if number is base |
C :: print binary c |
C :: printf n characters c |
Dart :: flutter textformfield hide underline |