CSE340Fall2008Test2

CSE340Fall2008Test2 - Arizona State University Fulton...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Arizona State University Fulton College of Engineering Computer Science and Engineering CSE 340 Spring 2008 Test #2 State any assumptions you make . Write legibly. If I cannot read what you write, I cannot grade it! Question 1. [25 points] Consider the following declarations typedef struct C { Answers int i; int j; } x, y; typedef struct B { int k; int l; } z; typedef struct A { struct { int m; int n; } x; } w ; struct { int i; int j; } x1, y1; B z1; C w1; 1. Which variables are equivalent under structural equivalence? 2. For every structure without a name, assume that there is an internal name not visible to the programmer. For named structures, the internal name is the same as the external name visible to the programmer. One kind of equivalence we might consider is internal-name equivalence in which variables with the same internal names are equivalent. By definition, variables that are name- equivalent are also internal-name equivalent. Which variables are equivalent under internal-name equivalence?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Question 2. [25 points]
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

CSE340Fall2008Test2 - Arizona State University Fulton...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online