c# - Can we use multiple parameter when we pass the argument by reference -
i'm new programming. wanna ask whether can use key word "ref" when there multiple parameters?
static int calc(ref int x, int y) { return x*y; } static void main(string[] args) { int num=2; int multi=calc(ref num, 4); console.writeline(multi); }
Comments
Post a Comment