UC3M

Telematic/Audiovisual Syst./Communication Syst. Engineering

Systems Architecture

September 2017 - January 2018

16.9.4.  Detect and fix program errors using the debugger

Resources

  • Document The Debugger

  • File tablealloc.c in subfolder Debugger in your shared folder.

Work Plan

The program contained in the file tablealloc.c creates two tables of N elements. One of them stores data structures of type name_and_number, and the second one stores integers. The main function fills both tables with data and then just prints their content on the screen. When executing this program, it can be seen that the printed results are incorrect. Using the debugger, find the error and modify the code such that its execution is correct.