Ask Question
30 August, 05:56

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).

+5
Answers (1)
  1. 30 August, 08:36
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers