0
Wap to find out whether a given character is an alphabet or digit or blank space or a special symbol? (Plz some one ans this)
2 ответов
+ 2
Please tag the relevant programming instead of "j". This way, you can get help much faster!
Many programming languages have string methods that allow you to determine if the string/ substring is a letter or a digit, a blank space is " ". Any string/substring that is non of the former could be counted as "special character".
If you need to distinguish types of special characters, have a look at a library. If you want to validate a certain pattern, you may have a look at "regular expressions".
edit:
for each character you can check if it is in the char array where you define the characters.