Question: When deciding between out and ref parameter - if you do not have an initial value or you do not kno.s whether you will have
When deciding between out and ref parameter
if you do not have an initial value or you do not kno.s whether you will have an initial value, use out. For example, in an interactive program, a user might not provide a value for a variable, so you don't know whether the varial e has an initial value use "out" and use "ref," if you always have an initial value.
If you will always have an initial value, use ref.
True
False
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
