Sample | Sample Final Exam | COMP2521 |
Consider the following command to compile a program which uses Graph and Set ADTs
$ gcc -g -o trav traverse.o Graph.o Set.o
Based on the above answer the following questions:
What is the effect of the -o option in the above command?
What gcc command would produce Graph.o from Graph.c?
If the above program contained a function called myFun(), what would the following gdb command do:
(gdb) break myFun
Type the answer to this question into the file called q9.txt and submit it using the command:
$ submit q9
The above command will make a copy of q9.txt as your answer for this question.