Back to questions
JuniorTheoryCommon
What does the program print (lines separated by spaces)?
Процедура Шапка()
Сообщить("КанцТовары");
КонецПроцедуры
Сообщить("Чек");
Шапка();
Сообщить("Итого");Чек КанцТовары Итого
- Expecting the procedure at the top of the module to run first: it is only declared and runs when the module body calls it
- Expecting procedures to run after the module body: a call jumps into the procedure at once and returns to the next line
- What happens if a procedure is written after the module body?
- How does the output change if
Шапка();is called twice?