Chapter19solutions

Chapter19solutions - 19.3 for (i = 0; i < TOTAL_FLIGHTS;...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 19 19.1 The variable getdata is uninitialized, and points to an unknown location in memory. In order to dereference it using the -> operator, it must first point to a legitimate item in memory. The statement : getdata->count = data + 1; will cause a run-time error. 19.2 LDR R0, R5, 0 ; load value of getdata LDR R1, R0, 1 ; load value of getdata->next STR R1, R5, 0 ; getdata = getdata->next;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 19.3 for (i = 0; i < TOTAL_FLIGHTS; i++) { for (j = 0; j < i ; j++) { … … } } 19.4 a. The activation record for is_it_noble contains 5 elements: return value, return address, dynamic link, base address of t, and the value of i. b. The activation record for main contains 2975 elements: 2970 for the structure periodic_table, 2 for x and y, and 3 for the bookkeeping items. 19.5 b. 0 1 2 3...
View Full Document

This note was uploaded on 04/07/2008 for the course ECE 495K taught by Professor Vijaykumar during the Spring '08 term at Purdue University.

Ask a homework question - tutors are online