Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The purpose of this lab is to reinforce pointer concepts and to introduce a graphical debugger on cloudland. The standard linux debugger is gdb and

image text in transcribed
image text in transcribed
The purpose of this lab is to reinforce pointer concepts and to introduce a graphical debugger on cloudland. The standard linux debugger is gdb and ddd is a GUI built on top of gdb. We will use ddd. Some good references are /knuth luther.edul leckent/tutorials/ddd.html https://www.youtube.com/watchv 4aLaHTg45Sw https:/www.youtube.com/watch2v a4iH HNcOt4 http Your instructor will do a demo of ddd illustrating the most important capabilities which include: how to load and run your program how to set a breakpoint how to step through your code how to examine values of variables how to access and interpret the stack trace To use ddd (or any program with a graphical interface), windows users will have to have an x server running on their windows machine and will have to tunnel the x-packets using port 22 You covered this in lab 0. After the demo, you need to download lab5.cpp, compile it, and then execute it on cloudland. This program contains a classic rronvolving pointers. You need to find and correct that error. Obviously, ddd is a tool that can help you. include #include #include 0 // return: pointer to an array of integers of size n void display_int_array (const int a, int n); // precondition: a is not null and n >0) // postcondition: contents of a have been displayed on standard output int main (int argc, char" argy) const int size 10; int a create int array (size); display_int array (a, size) delete D a; return EXIT SUCCESS int" create_int_array (int n) assert (n> 0); int a[n for (int i 0; i 0); for (int i = 0; i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

Students also viewed these Databases questions

Question

=+j Identify the challenges of training an international workforce.

Answered: 1 week ago