Void functions might not return a value.
This commit is contained in:
parent
10034f38df
commit
d031031e4e
|
@ -316,12 +316,12 @@ and `Necchi`. It maps to:
|
||||||
Finally, this:
|
Finally, this:
|
||||||
|
|
||||||
blinda la supercazzola antanizzata o scherziamo?
|
blinda la supercazzola antanizzata o scherziamo?
|
||||||
vaffanzum alfio meno 2!
|
vaffanzum!
|
||||||
|
|
||||||
is a `void` function taking no arguments and becomes:
|
is a `void` function taking no arguments and becomes:
|
||||||
|
|
||||||
void antanizzata() {
|
void antanizzata() {
|
||||||
return alfio - 2;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Functions cannot be nested and can be declared before or after the main in any
|
Functions cannot be nested and can be declared before or after the main in any
|
||||||
|
|
Reference in New Issue
Block a user