This lab demonstration seeks to compare the performance of two programming languages: the C language and its high-level equivalent C++ language. Often lower-level languages like C are primitive and therefore close to the machine. This leads to the possible conclusion that C allows greater performance due to lower complexity. Will this be proven here?
On of the best ways to test the performance of a computer languages is to code a sorting algorithm and test it. In order to do this, a program called bubsort.cpp was downloaded off of Prof. Gomez's website, compiled, and tested. The code is shown down below.