

MCQOPTIONS
Saved Bookmarks
This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your GDB Debugger Questions & Answers knowledge and support exam preparation. Choose a topic below to get started.
1. |
To print the value of a variable while debugging with GDB, ______ command can be used. |
A. | printf |
B. | |
C. | show |
D. | none of the mentioned |
Answer» C. show | |
2. |
For debugging with GDB, the file “sanfoundry” can be created with the command |
A. | gcc -g -o sanfoundry sanfoundry.c |
B. | gcc -g sanfoundry.c |
C. | gdb sanfoundry |
D. | none of the mentioned |
Answer» B. gcc -g sanfoundry.c | |