+ 2
How does this program work? I don't understand. Why 7?
enum Lngs{Java=2, cpp=4, C=6, CS} static void Main(string [] args) { Lngs x=Lngs. CS switch (x) { case Lngs. CS: Console. Write ((int) Lngs.CS); break; } }
2 ответов
0
I think you need to supply a value for CS in d enum declaration