Question: I was required to debug this even though no bugs exist. whay happened when you try to run the program to completion? and I would

 I was required to debug this even though no bugs exist.

I was required to debug this even though no bugs exist. whay happened when you try to run the program to completion?

whay happened when you try to run the program to completion? and

and I would also like to know

"explain how you run CGDB to completion on the executable created for this function without getting stuck"

thank you!!

#include #define MAX_LEN 88 int main (int argc, char *arqv char a word [MAX LEN]: printf ("what's your name? "); fgets (a word, MAX LEN, stdin); printf( "Hello, %s! hope you have a wonderful day. ", a-word); return Let's see what happens if your program requires user input and you try to run GDB on it. First, run the program defined by interactive hello.c to talk to an overly friendly program. gcc +g -o int hello interactive hello.c s ./int_hello Now, we're going to try to debug it (even though there really are no bugs). $ gab int hello What happens when you try to run the program to completion? The purpose of this exercise is to make you unafraid of running the debugger even when your program needs user input

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!