CSC 272-Software II: Principles of Programming Languages

Dr. R. M. Siegfried

Assignment #6 - p. 298/Problem Set 2, 7, 10 (with a little extra)

Due Friday, April 28, 2017

Problem Set 2

How does a decimal value waste memory space?

Problem set 7

What significant justification is there for the -> operator in C and C++?

Problem Set 10i (with a little extra)

Multidimensional arrays can be stored in row major order, as in C++, or in column major order, as in FORTRAN Develop the access functions for both arrangements for three-dimensional arrays (You can use pseudocode or Java for this.) You have three indices, e.g., x[i][j][k] . Convert this to an offset from the beginning of the array assuming a starting address of 0x00123400 and 4 bytes for value.

[Back to the Assignment Index]