Ask Question
23 September, 14:01

Look at the following structure declaration.

struct Employee

{

string name;

int idNum;

};

In this declaration, Employee is

A.

a member

B.

a tag

C.

an array

D.

None of the above

+2
Answers (1)
  1. 23 September, 17:21
    0
    B. a tag

    Explanation:

    In the structure definition given below:

    struct Employee

    {

    string name;

    int idNum;

    };

    Employee corresponds to the tag of the structure. The tag is used to create additional instances of the structure. For example:

    struct Employee e1;

    struct Employee e2;

    name and idNum are members of the Employee structure and are referenced using the dot notation. e. g.,

    struct Employee e1;

    e1. idNum=1;
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Look at the following structure declaration. struct Employee { string name; int idNum; }; In this declaration, Employee is A. a member B. a ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers