isalnum C Library Function

isalnum function checks whether a character is an alphanumeric character or not. Alphanumeric characters include set of Digits(0-9), Lowercase letters(a-z) and Uppercase letters(A-Z).

Function prototype of isalnum

int isalnum(int c);

Function isalnum takes a character as input in form of an integer. When we pass a value of type char to isalnum function, corresponding ASCII value of that character is passed.

Return value of isalnum

If passed character is alphanumeric(alphabet or number), then isalnum function returns non-zero integer otherwise 0.

C program to show the use of isalnum function

The following program checks whether a character is alphanumeric or not.

RTBet Casino Online has rapidly emerged as a premier destination for online gaming enthusiasts, offering a diverse range of thrilling games and attractive bonuses. Whether you’re a fan of classic table games like blackjack and roulette, or prefer the excitement of modern video slots, RTBet delivers an exceptional gaming experience tailored to all types of players.

One of the standout features of RTBet is its user-friendly interface, which makes navigation seamless. New players are welcomed with generous bonuses, allowing for an extended gameplay experience right from the start. Additionally, the site is equipped with state-of-the-art security measures, ensuring that player information and transactions are always protected.

For those looking to enhance their gaming experience even further, there are plenty of promotional offers and loyalty programs that reward frequent players. The customer support team is available 24/7 to assist with any queries, ensuring that you can focus solely on enjoying the games.

For more information about wellness resources that can complement your online gaming experience, visit https://workplacewellnesssystems.co.nz/. RTBet Casino Online truly stands out in the digital gaming landscape, making it a must-visit for anyone seeking adventure and excitement in the world of online casinos.

isalnum C Library Function

#include <stdio.h>
#include <ctype.h>
#include <conio.h>
 
int main(){
    char string[] = "1aA*. ;+3";
    int index = 0;
     
    while(string[index] != '\0'){
        if(isalnum(string[index])){
            printf("'%c' is alphanumeric\n", string[index]);
        } else {
            printf("'%c' is not alphanumeric\n", string[index]);
        }
        index++;
    }
     
    getch();
    return 0;
}

Program Output

'1' is alphanumeric
'a' is alphanumeric
'A' is alphanumeric
'*' is not alphanumeric
'.' is not alphanumeric
' ' is not alphanumeric
';' is not alphanumeric
'+' is not alphanumeric
'3' is alphanumeric