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
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