CS174: Pointer Fundamentals Module: Exercise 1 (1.5 Points)

Developed by Professor Tralie and Professor Mongan.

Exercise Goals

The goals of this exercise are:
  1. Work with pointers in C++
  2. Pass values by reference to methods in C++
Fill in a method that swaps the values of two elements in memory, which is a very useful operation in sorting algorithms, as we will see later.
Welcome to our online modules system! Be sure to log in with your Urinus ID before you proceed. For example, Professor Tralie's ID is ctralie. If you are not an Ursinus student, that's fine! Just make something up, and you can still run everything