Catlover237 Catlover237
  • 23-08-2019
  • Computers and Technology
contestada

Before a structure can be used, it must be

A.
declared

B.
deallocated

C.
initialized

D.
All of the above

Respuesta :

Branta Branta
  • 26-08-2019

Answer:

A. declared

Explanation:

Before a structure can be used, it must be  declared.

For example:

// Structure definition

struct s{

int a;

char b;

};

// Structure instantiation

struct s  mystruct;

// This is where a structure instance called mystruct is created whose

// datatype is struct s.

mystruct.a = 10;

mystruct.b = 'c';

As we can see from the example definition precedes use for the structure.

Answer Link

Otras preguntas

Write a letter to your sister describing abour your best friend​
fjhghdjd ffjfnfnfjdj​
which sentence is consistently iambic? a. together people win b. max rides a scooter c. teleport hastily d. reconnoiter the woods
A 20-year loan of 1000 is repaid with payments at the end of each year. Each of the first ten payments equals 150% of the amount of interest due. Each of the la
How did the Spanish most exploit the people of the Americas?
Please help I’ll give brainliest
The sit-in by four African American college students in North Carolina _____. led to the passage of the 1964 Civil Rights Act prompted a series of bus boycotts
Claire's music playlist contains songs she bought and songs her mother bought. The ratio of her songs to her mother's songs is 3:2. Which table shows this ratio
if for a dog 1 year is 7 ears for them, how many hours in 24 hours is one day for dogs?
How did the conflicts between Iberian and American civilizations forge connections that changed them all