Content deleted Content added
m Reverted 2 edits by 107.77.253.3 (talk) to last revision by Alejandrocaro35. (TW) |
Remove two instances of "he or she" |
||
Line 118:
</source>
Use of blocks in the above fragment of [[Pascal (programming language)|Pascal]]
In primitive languages, variables had broad scope. For instance, an integer variable called IEMPNO might be used in one part of a Fortran subroutine to denote an employee social security number (ssn), but during maintenance work on the same subroutine, a programmer might accidentally use the same variable, IEMPNO, for a different purpose, and this could result in a bug that was difficult to trace. Block structure makes it easier for programmers to control scope to a minute level.
|