j015
j015
09.07.2019 • 
Computers and Technology

Write a program to check if two strings are different by one and only one character (when checked character by character). for example, lake and bake are different by one and only one character. pal and pale, bus and bit, kite and bit are not different by one and only one character. example input/output enter the first string: red enter the second string: bed output: the two strings are replaced by one character enter the first string: cat enter the second string: act output: the two strings are not replaced by one character your program should include the following function: int diff 1 (char *s1, char *s2); the function expects s1 to point to a string containing the input as a the output to the string pointed by s2. the function returns 1 if s1 and s2 are replaced by one string and stores 1) name your program one char.c.

Solved
Show answers

Ask an AI advisor a question