Ask Question
30 June, 20:34

Before a structure can be used, it must be

A.

declared

B.

deallocated

C.

initialized

D.

All of the above

+5
Answers (1)
  1. 30 June, 22:29
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers