HW22
COP-3223H
Submit your answers via webcourses
- Using only your mind and/or pencil and paper (do not compile and run the program), write a program that, given some string
str, that has lengthstrlen, reverses the string. - Using only your mind and/or pencil and paper (do not compile and run the program), write a program that, given some string
matchand a larger stringstr, print"yes\n"if the stringmatchappears anywhere inside ofstrand"no\n"otherwise. You may assume the length is already provided (strlen and matchlen). Perform the string comparison yourself without strncmp.