Home » C# Programming » Structures

Which of the following is the correct way of setting values into the structure variable e defined below? struct Emp { public String name; public int age; public Single sal; } Emp e = new Emp();

Correct Answer: e.name = "Amol"; e.age = 25; e.sal = 5500;

← Previous Question Next Question→

More Questions from Structures

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion