menu_var_variavel-local.html 906 B

123456789101112131415161718192021222324
  1. <div class="w3-item"><img src="img/icn_variaveis.png" title="icone creation of local variable" class="w3-icon icon_32x32" />
  2. <h3>Local Variable</h3>
  3. <p>
  4. The <i>variables </i> are used to store values.
  5. In the case of <i>local variable</i>, it is all <i>variable </i> created within a given function.
  6. In this case, it will be <b>known</b> only within that function.
  7. <bf/>
  8. It is recommended that <b>use only this type of</b> variable, avoiding <i>global variables<i>, because the latter can lead to confusion in the code.
  9. <br/>
  10. <center>
  11. <img src="img/var_local.png">
  12. </center>
  13. <ol>
  14. <li><b>Type:</b> defines the type of information to be stored (integer, float, string, logical and array)</li>
  15. <li><b>Name:</b> defines the name of the variable, used to trigger it from any part of the program</li>
  16. <li><b>Value:</b> sets a value to be stored in the variable</li>
  17. </ol>
  18. </p>
  19. </div>