Ask Question

Before a structure can be used, it must be

A.

declared

B.

deallocated

C.

initialized

D.

All of the above

+4
Answers (1)
  1. 4 February, 22:39
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Before a structure can be used, it must be A. declared B. deallocated C. initialized D. All of the above ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers