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

how to write 4100 in scientific notation?
What roles do exchange particles play in an interaction?
Na and ci are chemical ( symbols,formulas).
How do you solve this equation
Mr.Young had some bottles of apple juice and orange juice. The ratio of the number of bottles of apple juice to the number of bottles of orange juice was 3:2. A
which one of these does a eukaryotes usually contain a nucleus specialized organelles genetic material or all of the above
what does begin with end in mind mean?
The ratio of Sam's age to Hank's age is 5 to 3. If the sum of their ages is 24, how old is Hank?
Why might a dictatorship hold an election? How was their elections differ from our elections
What is the answer to the problem. Increase 14 by 45%