Which of the following is the correct way to define a variable of the type struct Emp declared below struct Emp { private String name; private int age; private Single sal; } Emp e(); e = new Emp(); Emp e = new Emp; Emp e; e = new Emp; Emp e = new Emp(); Emp e;

Comments and Answers (2)

Li

Li

need help, explain answer

Lavish

Lavish

please post an explanation

Avatar

{{SampleComment.userName || "Your Name"}} ~ {{SampleComment.userCity}}

{{SampleComment.commentValue || "Your Answer or Comment goes here...."}}