Ask 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 grade (a string).

+1
Answers (1)
  1. 2 January, 09:59
    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 & 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