Write strcpy (string copy). What test cases would you have? Write strrev (string reverse) in place. (temp char is fine)
Anonymous
// strrev char str[] = "Hello World"; j=0; for(i=strlen(str)-1; i<=strlen(str)/2; i--) { temp = str[j]; // swap str[j] = str[i]; str[j] = temp; j++; }
Check out your Company Bowl for anonymous work chats.