Search
 
SCRIPT & CODE EXAMPLE
 

C

c check if character is a digit

char ch = '1';
if(isdigit(ch))
  printf("numeric");     
else
    printf("alphabet" );
 // output: numeric
CCopy
Comment

c check if character is a digit or alphabet

char ch = '/';
 if(isalnum(ch))
   printf("numeric or ap=lphabet");     
 else
     printf("other symbol" );
 //output: other symbol 
CCopy
Comment

PREVIOUS NEXT
Code Example
C :: differnce between spooling and buffering 
C :: scanf string in c 
C :: redirect to url page asp.net mvc 
C :: right side of div 
C :: c program to find minimum of 4 numbers using conditional operator in c 
C :: c print multiple variables 
C :: vbnet create and write on file 
C :: CL/cl.h: No such file or directory 
C :: odd even in c with ternary operator 
C :: merge sort for strings in c 
C :: append to list in c 
C :: c in array 
C :: stack push code 
C :: vowel and consonant C 
C :: C program to check whether character is lowercase or not using ASCII values 
C :: signal function c 
C :: flip exis in dataframe 
C :: pointers to a function in c 
C :: pointer arithmetic in c 
C :: Installing Tailwind 
C :: macos prevent disk mounting 
C :: . Simulate MVT and MFT. 
C :: definir função em c 
C :: stack and heap memorym in ram 
C :: c unused variable 
C :: loops questions on c 
C :: convert python to c 
C :: can we use logical operators in switch c 
C :: dev c online 
C :: parcel-bundler include image files 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =