0

Consider the following code-: Static in Test(out int x,int y=4) { X=6; return x*y; } static void main( string args[]){ int a;

plz explain value flow

16th Jan 2017, 1:05 PM
Aniket Patil
Aniket Patil - avatar
1 Resposta
0
out works on the reference of a variable and there isn't a need to return it. y works on the argument. you don't need the out in your example because you are returning the outcome of x*y
16th Jan 2017, 2:19 PM
Robert Kavanaugh