Quiz Yourself on Structures
Test your understanding of the material presented in this chapter.
We'll cover the following...
We'll cover the following...
Structures
1.
Given the following structure
struct MyStruct
{
int x;
int y;
int z;
};
(Select all that apply.) Which of the following statements about the following declaration are correct?
MyStruct instance;
A.
The declaration is correct.
B.
The declaration is wrong.
C.
To make the declaration correct, we can change the structure definition like so:
typedef struct
{
int x;
int y;
int z;
}MyStruct;
D.
The code won’t compile.
1 / 7
...