Kizspy | Question: 34
(Choose 1 answer)
class Program{
static void Show(string message){
Console.Write(message);
}
async static Task Main(string[] args) {
Task[] arr = {
Task.Run(()=>Show("A")),
Task.Run(()=>Show("B"))
};
await Task. WhenAll(arr);
Console.ReadLine();
}
}
Which one of the following is the output of the above code?
A. Results are unpredictable
B. AB
C. BA
D. An exception will be thrown