char ch = '!'; if(ispunct(ch)) printf("punctuation"); else printf("other symbol" ); // output: punctuation CCopy