Sign in Join
Wiki copytemporary

Global variables/ru: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11Глобальная [[Variable/ru|переменная]] - это переменная, которая объявляется в главной секции программы или в разделе interface [[Unit/ru|модуля]]. Глобальные переменные, объявленные в программе, не могут быть доступны внутри [[Unit/ru|модуля]]. Глобальные переменные, объявленные в [[Unit/ru|модуле]], могут быть доступны в программе и в других модулях.
22
3-` program GlobalVariables;`\
4-` var`\
5-`   g: integer;`\
6-` begin`\
7-` end.`
3+``` pascal
4+ program GlobalVariables;
5+ var
6+ g: integer;
7+ begin
8+ end.
9+```
810
911**g** является глобальной переменной.
1012
1113## Внешние переменные
1214
1315Внешняя переменная - это глобальная переменная, объявленная в разделе [[Interface/ru|interface]] [[Unit/ru|модуля]].
1416
1517## Читайте подробнее
1618
1719- [[Var/ru|Var]]
1820- [[Local variables/ru|Локальные переменные]]
1921
2022---
2123*From the Free Pascal wiki, page "Global variables/ru", as it stood on 2018-05-25 after a change by Useroflazarus, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
2224Category: Pascal/ru

Back to history