Question: For the psuedo code above, I'm focusing on scope and using Modula-3 as the language. Can you tell me what the output would be? And

For the psuedo code above, I'm focusing on scope and using Modula-3 as the language. Can you tell me what the output would be? And or would there be an error? Thanks
1. procedure main 2. a: integer := 1 3. b: integer := 2 4. procedure middle 5. b: integer := a 6. procedure inner 7. print a, b 8. a: integer := 3 9 end 10. -- body of middle 11. inner 12. print a, b 13. end 14. -- body of main 15. middle 16. print a, b 17. end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
