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; | SoloLearn: Learn to code for FREE!

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

c#

1/16/2017 1:05:55 PM

Aniket Patil

1 Answer

New Answer

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