Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
22nd HW Switchv0.2
//gcc 5.4.0 #include <stdio.h> int main(void) { char myChar; printf("Please enter a single Character:\n"); scanf("%s\n",&myChar); printf("The entered character is:%c\n", myChar); switch(myChar) { case isspace(myChar): printf("You have entered a space character\n"); break; case ispunct(myChar): printf("You have entered a punctuation character\n", break; case iscntrl(myChar): printf("You have entered a control character."); break; case isalnum(myChar): printf("You have entered an alphanumeric character AND"); case isdigit(myChar): printf("Your character is a digit\n"); case isalpha(myChar): case islower(myChar): printf("Your character is an lower case alphabetic character\n"); default: printf("Your character is an Upper case alphabetic character\n"); break; } return 0; }
run
|
edit
|
history
|
help
0
Instruction order in C/C++
implicit parameter type
Swiss Infotech Tutorial
C_141210_Punteros
C_14119_Media
thread SleepWakeup and mutex
second P
Assignment 3
18BCE2182 ASSESS_2 Q-1
Midterm practice 2