Ask Question
3 November, 18:49

Assume that the type NAME has already been defined. Define a new type, SREC that is a structure consisting of two fields: name (a NAME) and grade (a string).

+3
Answers (1)
  1. 3 November, 22:30
    0
    struct SREC

    {

    NAME name;

    string grade;

    };

    Explanation:

    The first line declares a new data type, a structure, of name SREC. The open and close braces, are used to contain other data fields or members, namely: name and grade variables.

    The NAME has already been defined, hence there is no declaration method in the SREC structure.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Assume that the type NAME has already been defined. Define a new type, SREC that is a structure consisting of two fields: name (a NAME) and ...” 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