Cursus Raku / Elementa / MAIN
functio / Legere linea mandati argumenta
Quiz — Defaulte valores
Consider the following program.
sub MAIN($a = 'abc', $b = 'def') {
say $a;
say $b;
}
1
What does it print if it is run as shown below?
$ raku t.raku
abc def | Enter the output values: ␣␣␣ and ␣␣␣ |
2
Now, the same program is run as:
$ raku t.raku xyz
xyz def | Enter the output values: ␣␣␣ and ␣␣␣ |
3
Finally, this command:
$ raku t.raku xyz 123
xyz 123 | Enter the output values: ␣␣␣ and ␣␣␣ |
Cursus navigatio
←
MAIN
functio
|
MAIN
functio / Multiplicem MAIN
functiones
→
💪 Or jump directly to the exercises to this section.
Haec pagina automatice translata est per ChatGPT 4o. Originalis Anglicus textus
Translationes huius paginae: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська