Code:
#include <stdio.h>
#include <ctype.h>
#define SIZE 50
void ToUpperCase(char, char);
int main (void)
{
int i=0;
char s1[SIZE];
char s2[SIZE];
printf("Please Enter the First String: ");
scanf("%s", &s1[i]);
printf("\nPlease Enter the Second String: ");
scanf("%s", &s2);
printf("\n");
for (i=0; s1[i] != ('\0' && i < SIZE); i++)
printf("%c is %s letter", s1[i] , isalpha(s1[i]) ? "a" : "not a ");
//ToUpperCase(s1, s2);
return 0;
}
//void ToUpperCase(char, char){
//int i;
//for (i=0; i<=SIZE; i++)
//printf("%s", s1
//isalpha(s1[i]) ? "Is " : "Is not ", "a letter");
I am so confused with this?