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
Correct Answer:
Verified
Related Questions
Q1: Consider the following statements. struct circleData<br>{<br>Double radius;<br>Double
Q10: Which of the following is an allowable
Q14: Consider the following function prototype:int seqSearch(const listType&
Q18: You can declare struct variables when you
Q21: A struct is a(n) _, not a
Q24: Data in a struct variable must be
Q25: An array name and index are separated
Q29: The contents of a struct variable must
Q29: You can assign the value of one
Q36: Relational operations can be used on struct