CP SC 1011: Lab 5, Fall 2022

Using an editor, answer the following questions:

NAME: Warren Wasden

---------
example.c
---------
1) What is the cause of the seg fault in the program called example.c?
	The cause of the seg fault in example.c was an infinite loop. Technically the
	loop ran, but with the condition it didn't stop because the number would've
	always been above the condition statement.


--------
broken.c
--------
2) What line in broken.c did the program seg fault on?
	The line that seg faulted in the program was line 37.

3) What was the value of the variable "count" at the time of the seg fault?
	10

4) What was the value of the variable "i" at the time of the seg fault?
	441

5) What was the value of the variable "search" at the time of the seg fault?
	1

6) What are the values in the "table" array?


7) what do you think the bug is?
	The bug was the while loop had a statement in it where the variable was being
	initialized, but for a while loop there just needs to be a condition
	statement for a while loop to run properly.

