In COBOL, what is the default scope of a variable declared within a procedure?

  • Global scope
  • Local scope
  • Regional scope
  • Universal scope
By default, a variable declared within a procedure in COBOL has a local scope. This means that the variable is accessible only within the procedure in which it is declared, reducing the risk of unintended interference with other parts of the program.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *