/* write a function change string that replace all lowercase letters with character '&' and all other chars remain the same write main to test your function */ #include void changeString(char old_str[], char new_str[]); #define SIZE 21 int main(){ char old_str[SIZE], new_str[SIZE]; printf("enter a string max 20 characters\n"); scanf("%s",old_str); changeString(old_str, new_str); printf("new string is %s\n", new_str); return 0; } void changeString(char old_str[], char new_str[]){ int i=0; while(old_str[i]!='\0'){ if(old_str[i]>='a' && old_str[i]<='z'){ new_str[i]='&'; } else{ new_str[i]=old_str[i]; } i++; } new_str[i]='\0'; }