aliyahmorgan654 aliyahmorgan654
  • 03-08-2019
  • Computers and Technology
contestada

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

Respuesta :

ofentsemaphalla
ofentsemaphalla ofentsemaphalla
  • 06-08-2019

Answer:

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.

Answer Link

Otras preguntas

Which of these nonfiction texts will most likely have a formal tone? 1.a travel guidebook 2.a geography textbook 3.a biography 4.a blog post
What was the goal of hitlers "final solution"?
China’s government discourages population growth through all of the following measures except __________.
what does the symbol Li+ represent?
Which star makes up Orion's knee to your right, or the end of his tunic? A. Polaris B. Sirius C. Betelgeuse D. Rigel
To correctly write the binomial nomenclature for a particular animal, you would use which of the following?
Why do earthquakes and volcanic eruptions frequently occur in the same areas?
definition of mitochondria
If 20 atoms of aluminum react with 45 molecules of chlorine gas, which reactant is limiting and how many more atoms/molecules would be required to use up all th
When establishing a study schedule, you should begin by