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

The sum of two integers is -15. The product of the two integers is 54. What are those two integers a. -6 and -9 b. -6 and 9 c. 6 and 9
A motorist drives from home to his office .The distance between his home and office is 32.27 km.After driving 15.65 km,he stopped at a petrol station .How much
which branch of government do you think receive the most power under the constitution?
Line AB contains points A(-2,6) and B (4,5) what is the slope of line AB
A house on the market was valued at $278,000. After several years, the value decreased by 9% By how much did the house's value decrease in dollars? What is the
I need immediate help!!!
Lance baked a pie. Justin are 2/3 of the pie, and Joey had 1/4 of the pie. How much pie is left?
Many struggling businesses made large profits during World War II through war contracts with factory workers. the government. the Allies. oil producers.
Determine which is the graph of the given function.
Solve for x. -14 + 2x-5x=4