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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -