Need Help ?

Home / Expert Answers / Other / c-program-replace-any-alphabetic-character-with-in-2-character-string-passcode-ex-if-passcode-is-9a-

(Answered): C program Replace any alphabetic character with '_' in 2-character string passCode. Ex: If passCode ...



Replace any alphabetic character with _ in 2-character string passCode. Ex: If passCode is 9a, output is: 9_ Hint: Use twC program

Replace any alphabetic character with '_' in 2-character string passCode. Ex: If passCode is "9a", output is: 9_ Hint: Use two if statements to check each of the two characters in the string, using isalpha(). 1 #include <stdio.h> 2 #include <string.h> 3 #include <ctype.h> 4 5 int main(void) { 6 char passCode [3]; 7 8 scanf("%s", passCode); 9 10 * Your solution goes here */ 11 12 printf("%sn", passCode); 13 return 0; 14 }


We have an Answer from Expert

View Expert Answer

Expert Answer


Answer to Replace any alphabetic character with '_' in 2-character string passCode. Ex: If passCode is "9a", output is: 9_ Hint: U...
We have an Answer from Expert

Buy This Answer $4

Place Order