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

How did the motives of the virginia colonists differ from those of the separatists who settled in plymouth
An American we celebrate our unity and also celebrate our diversity.Why are they both strength of our country and why
In which one of the following sentences does an adverb modify an adjective? a. Lucy danced tirelessly. b. His appearance greatly affected Candace. c. His shi
233,740 expanded word form
What was MacArthur’s role in the Korean War?
is salt a solid or a liquid
Adam is scuba diving. he descends 5 feet below sea level. he descends the same distance 4 more times. what is adam's final elevation?
Which of these will probably cause frustration? Which of these will probably cause frustration? A. Getting stuck in an elevator on the way to an appointme
A wireless cafe charges $5.40 for 3/4 hour of Internet access. How much does the cafe charge per hour?
rename the number 120,000