UP | HOME

HW22
COP-3223H

Submit your answers via webcourses

  1. 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 length strlen, reverses the string.
  2. Using only your mind and/or pencil and paper (do not compile and run the program), write a program that, given some string match and a larger string str, print "yes\n" if the string match appears anywhere inside of str and "no\n" otherwise. You may assume the length is already provided (strlen and matchlen). Perform the string comparison yourself without strncmp.

Author: Paul Gazzillo

Created: 2026-03-09 Mon 10:02

Validate