Question: questions 9-12 9. Suppose you have created a C program hello.c and you try to compile it using gcc. However, the compiler gives some warning

questions 9-12 questions 9-12 9. Suppose you have created a C program hello.c and

9. Suppose you have created a C program hello.c and you try to compile it using gcc. However, the compiler gives some warning and/or error messages. What would you do to deal with these messages? 10. Suppose you have created a C program hello.c and you have successfully compiled it using acc and obtained the output file hello. However, when you try to run it, you get a runtime error message (e.g. segmentation fault) and then you believe something isn't right with your program. What would you do to deal with this situation? 11. Suppose you have created a C program hello.c and you have successfully compiled it using ass and obtained the output file hello. When you run it several times, you seem to be able to get the desired output every time. Can you conclude that your program has no bugs? (Do not assume that your program just prints a "hello world" message.) 12. Suppose you have created a C program hello.c and you have successfully compiled it using asc and obtained the output file hello. When you run it the program runs for a long time (e.g. an hour) and prints a lot of messages on screen (e.g. several hundred lines). You want to examine these messages to find out whether your program is working as desired. Somehow before you can finish you have to close the terminal window and leave your computer to focus on something else. How can you run your program differently to save these printed messages in a file so that later when you return to your computer you can immediately start to examine these messages without having to run the program again? Please type the complete command(s) that works

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!