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

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -