What is the output of this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the output of this code?

static int test(out int x,int y=4) { x=6; return x*y; } static void main (string []args) { int a; int z=test(out a); Console. WriteLine(out a+z); }

4th Aug 2022, 3:29 PM
Ash Ketchum
1 Answer
+ 2
answer=30
4th Aug 2022, 3:29 PM
Ash Ketchum