Type in a copy of the program given below. Type it in exactly asgiven. Any changes may lead to incorrect answers to the quizquestions. Compile the program with the -g debugging option turnedon. You may name the program whatever you wish. For example, if youput the program code in a file called quiz5.cpp, the command tocompile and link the program would look like this:
g++ -Wall -g -std=c++11 -o quiz5 quiz5.cpp
To run the resulting executable program in the debugger,type:
gdb quiz5
As given here, the program has no compile time errors, compiletime warnings, nor run time errors.
Using the debugger, answer the
OR
OR