The two approaches that come to mind:
char message[20];
fgets(message, 20, stdin);
int stringLen = strlen(message);
while(stringLen > 0 && isspace (s[stringLen -1])){
stringLen--;
}...
Type: Posts; User: whiskybrah
The two approaches that come to mind:
char message[20];
fgets(message, 20, stdin);
int stringLen = strlen(message);
while(stringLen > 0 && isspace (s[stringLen -1])){
stringLen--;
}...
I'm currently doing a Computer Science course and my professor is telling us to use Else if statements instead of Switch statements. I've done some searching and have used both and I find Switch...