public static int add(int a, int b, ref int c)
{
c = a + 2;
return a + b;
}
We can use out and ref,can be called as shown below
int e = add(2, 3, ref d);
Thursday, September 4, 2008
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment