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;
};
Answer: A
Computer Science & Information Technology
You might also like to view...
After a constraint is added to Solver Parameters, it cannot be deleted
Indicate whether the statement is true or false
Computer Science & Information Technology
The TCP protocol works at the network layer of the OSI model
Indicate whether the statement is true or false.
Computer Science & Information Technology