Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c check if character is a punctuation

char ch = '!';
 if(ispunct(ch))
   printf("punctuation");     
 else
     printf("other symbol" );
// output: punctuation
CCopy
Source by iq.opengenus.org #
 
PREVIOUS NEXT
Tagged: #check #character #punctuation
ADD COMMENT
Topic
Name
8+1 =