C#C
C#3y ago
10 replies
Emelie

✅ Newbie question - what exactly does return do?

If I have this piece of code... what exactly happens when the return statement is reached? I understand it exits the current function, but then what is the state of the programme?
image.png
Was this page helpful?