Lab - Pointer and String Manipulation in C


Lab Steps

You may complete this lab in the directory ~/systems/strings.

Part 0 - Download pointers.c

  1. Download the file pointers.c on your local machine and then transfer it to your ~/systems/strings directory on tanner. (Alternately, you may view, copy and paste it directly to a file of the same name on tanner, using emacs.)

Part 1 - Average

Remember to use Ctrl-x Ctrl-s to save your file, Ctrl-x Ctrl-c to exit, and Ctrl-g to cancel a partially typed or accidental command. Save your code frequently.

Part 2 - Reverse

Part 3 - Length

Part 4 - Compare

Part 5 - Copy

Part 6 - Concatenate