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 | 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

I have answered the question, but it's say's that the answer is wrong, my answer was 24.

19th Sep 2018, 1:39 AM
Lavetta Lewis
2 Answers
0
Either write the code snippet in, or save the code in your profile and put code link in the Description section. Currently your question is cropped because it exceeds character limits, they can't help you with partially shown info. And please use the tags section to mention the language involved, and words relevant with the question. * I will remove my note once I see you revise the original post.
19th Sep 2018, 5:50 AM
Ipang
0
Answer is 30
15th Apr 2020, 5:20 PM
Akshaya Achu
Akshaya Achu - avatar