(Choose 1 answer)
What is the output of the following code?static void M3(out string A) //line 1
{ //line 2 Console.Write($"{A} "); //line 3 A += "!"://line 4 Console.Write(S"{A}"); //line 5 //line 6 } static void Main(string[] args) //line 7 { //line 8 string S = "JUST"; //line 9 M3(S);//line 10 Console.Write($"{S}"); //line 11 //line 12 }
A. This code does not compile because of compile-time errors in line number 10 and line number 3.
B. This code does not compile because of a compile-time error in line number 3 only.
C. JUST JUST! JUST!
D. JUST! JUST! JUST!
Exit 17