524_Homework_B - begin sub3 … end sub3 begin sub2 … end...

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

View Full Document Right Arrow Icon
Homework: CSCI524 2. Based on the following two diagrams, please specify the Referencing Environment for each numbered point. static-scoped language Program example; Var a , b, c, d, e, f : integer ; ….. procedure sub1; var x , y, d, f : integer ; begin ….. end ; procedure sub2; var x, a : integer ; …… procedure sub3; var x, e : integer ;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: begin { sub3 } ….. end ; { sub3 } begin { sub2 } ….. end ; { sub2 } begin { example } ….. end. { example } dynamically scoped language void sub1( ) { int a , b, c ; Sub2 …. } void sub2( ) { int b , c, d ; …. } void main( ) { int c , d, e ; …. Sub1(); } /* end of main */ 1 1 2 3 4 1 2 3...
View Full Document

This note was uploaded on 02/13/2011 for the course CISC 524 taught by Professor John during the Spring '11 term at Murray State KY.

Ask a homework question - tutors are online