problem of basic semantics and bindings

vannex b. consad vannex@eudoramail.com
Tue, 01 May 2001 04:15:49 -0700


i have a problem, pls. can u provide me with the answers of these things.. thank you very much... 

a. Assume the language Pascal, C, or Modula-2.  Give as precise bindings times as you can for the following attributes, and give reasons for your answers:

    1.  the number of significant digits of a real number.
    2.  the meaning of char.
    3.  the size of array variable.
    4.  the size of an array parameter.
    5.  the location of a local variable.
    6.  the value of a constant.
    7.  the location of a function.

b.  Discuss the meaning of the following statement, early binding promotes security and efficiency, while late binding promotes flexibility and expressivenes..

c.  Compare the advantages and disadvantages of Pascal's declaration before use rule with Modula-2's rule that extends the scope of a declaration to the entire block, regardless of its position in the block.

d.  Describe the bindings performed by a Pascal Forward declaration.  why is such a declaration necessary?

e.  Describe the bindings performed by a C extern declaration.  Why is such a declaration necessary?


vannex:)

 



Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com