Which of the following is the correct method to define a struct abc variable? struct abc; public string name; protected internal int age; private Single sal;
A. abc e = new abc();
B. abc();
C. abc e; e = new abc;
D. abc e = new abc;
Answer:A
Which of the following is the correct method to define a struct abc variable? struct abc; public string name; protected internal int age; private Single sal;
A. abc e = new abc(); B. abc(); C. abc e; e = new abc; D. abc e = new abc;
Explanation: abc e = new abc();