Multiple Choice
Which of the following struct definitions is correct in C++?
A) struct studentType
{
int ID;
};
B) struct studentType
{
string name;
int ID;
double gpa;
}
C) int struct studentType
{
ID;
}
D) struct studentType
{
int ID = 1;
};
Correct Answer:
Verified
Related Questions
Q14: A function can return a value of
Q15: Data in a struct variable must be
Q16: Consider the following statements:rectangleData bigRect;
Q17: You can use an assignment statement to
Q18: In C++, the _ symbol is an
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents