CSE340Assignment1Clarifications

CSE340Assignment1Clarifications - If not found, search in...

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

View Full Document Right Arrow Icon
CSE340 Programming Assignment 1 Clarifications of requirements If you have other cases that you would like me to clarify, please let me know.
Background image of page 1

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

View Full DocumentRight Arrow Icon
B2 : B2 : It is not allowed to have the same Name for two blocks in the same scope B2 : B2 : It is allowed to have the same name for two blocks that are nested
Background image of page 2
B2 : B2 : a: int; a,b: int; B2.a = B2.b Both a and b refer to the variables in the inner scope. The rule is search in the current scope for a scope with label B2 If found, search for a variables with name a and b
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: If not found, search in the enclosing scope for a scope whose label is B2 . . B2 : B2 : a: int; a,b: int; a = B2.b Both a and b refer to the variables in the inner scope. The rule is search in the current scope for a scope with label B2 If found, search for a variables with name b For a there is no label and the search starts in the current scope and variable a is found. If not found, we would have to go to the enclosing scope and repeat...
View Full Document

Page1 / 4

CSE340Assignment1Clarifications - If not found, search in...

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

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