Lab 5, Spring 2023

Using an editor, answer the following questions:

NAME: Avery Bacon

---------
example.c
---------
1) What is the cause of the seg fault in the program called example.c?
    the couse of the seg fault is it is trying to access something outside the array within the loop


--------
broken.c
--------
2) What line in broken.c did the program seg fault on?
    line 28

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?
    449

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?
    {5, 10, 12, 14, 16, 18, 20, 22, 24, 26}

7) what do you think the bug is?
    I think the bug is in the while condition. Right now it is while( search = 1 ). It needs to be while ( search == 1 )

