Out Parameters?

Can’t remember a thing about Out Parameters, what video were these mentioned? I want to reinforce.

They’re basically just a reference of the original variable.

Anything you do to the reference, will also be applied to the original variable.

So the information you give to the reference will also be put OUT to the original.

They share the same memory adress because of the & operator!

This was a good explanation. Now it makes sense!

Privacy & Terms