QuickTopic (SM) free message boards QuickTopic (SM) free message boards
Skip to Messages
  Sign In to access your topic list  |New Topic |My Topics|Profile
Upgrade to Pro   Customize, show pictures, add an intro, and more:   QuickTopic Pro...and check out QuickThreadSM
Topic: CSE130@UCSD
Views: 4202, Unique: 1020 
Subscribers: 0
What's
this?
Printer-Friendly Page
Subscribe to get & post, or stop messages by email Subscribe
All messages    << 260-270  259-259 of 270  243-258 >>
About these ads
Who | When
Messagessort recent-top   
Post a new message
 
Aicha Mouline  259
03-23-2001 01:45 AM ET (US)

Hi ST,
The program outputs the value of the global variable B because function main "knows" only the global B. The local variable B declared in p2 is not visible within main().
Concerning the value of A, the last update of this global variable (before being output), is during the execution of procedure p1 called by p2. In the statement A:=B, variable A is assigned the value of the B (local) since that local B is the B "known" to p2 (the calling procedure). Let me know if you are still confused.

Aicha
RSS link What's this?
All messages    << 260-270  259-259 of 270  243-258 >>
QuickTopicSM message boards
Over 200,000 topics served
Learn more Frequently asked questions  Acknowledgements
What they're saying about QuickTopic
 Questions, comments, or suggestions? Contact Us
Read our use policy before beginning. We value your privacy; please read our privacy statement.
Copyright ©1999-2008 Internicity Inc. All rights reserved.