Ask Question

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

+5
Answers (1)
  1. 2 March, 18:05
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers