Debugging Question:
Download Questions PDF

To print the value of a variable while debugging with GDB, ______ command can be used.
a) printf
b) print
c) show
d) none of the mentioned

Linux Debugging Interview Question
Linux Debugging Interview Question

Answer:

b) print

Download Linux Debugging Interview Questions And Answers PDF

Previous QuestionNext Question
At the time of debugging with GDB, if we just press ENTER:
a) GDB will repeat the same command you just gave it
b) GDB will do nothing
c) GDB will exit
d) none of the mentioned
Which GDB command prints the value of a variable in hex.
a) print/x
b) print/h
c) print/e
d) none of the mentioned