Call by Value and Call by reference

This is in reference to the video Call by value and Call by reference, In the first code shown in this video, Update() is a void function, so I am not understanding how can it return any value to main at all?
( Timestamp in video- 2:34)

HI @anikapassi17_6ce74879d4a8438b, its not returning any value its taking it in a local variable and adding one, see there is no return statement inside