Lab - Arrays and Strings in C


Lab Steps

Part 0 - Download arraystrings.c

  1. In your systems directory, create another directory called strings. Change your current directory to ~/systems/strings.

  2. Download the file arraystrings.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