Consider the class and struct definitions below.
struct myStruct
{
int i;
double d;
};
class myClass
{
int i;
double d;
};
myStruct a;
a.i = 3;
myClass b;
b.i = 3;
True or False: All these statements will compile with no problem.
Correct Answer:
Verified
Q6: Structure definitions are usually global (defined outside
Q7: A structure member is access using the
Q8: No special syntax is necessary to define
Q9: There is no access to private members
Q10: The following definition of the structure variables
Q12: In defining a member function whose declaration
Q13: A data type is a collection of
Q14: The concept of class is central to
Q15: An abstract data type is a collection
Q16: A class type cannot be used in
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