I have a little doubt with the following code:
int n1 = 20;
int n2 = 10;
int n3 = (n1 > n2) ? n1:0;
Console.WriteLine(n3);
Console.ReadKey();
I do not understand why n3
ends up being 20
What roles fulfill the ?
and the n1:0
in that case?