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

A bag contains 12 slips of paper of the same size. Each slip has one number on it, 1-12. Describe an impossible event.
Please answer any of these thanks !
Based on the suffix, -ant, what does the word “defiant” mean?
The avocado own a 1/4 acre orchard. Two fifths of the orchard  is planted in orange trees. What fraction of an acre in planted in orange trees
What Is Immediate Constituent Analysis?
How to you graph a linear equation when all they say is y=4 what to do
116 is 145% of what number
What Are Genre Conventions?
What is the equation for calculating the heat energy released during heating effect of electric current?
If a force does not act parallel to the resulting displacement, what is the effect on the work done by the force?