True/False
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
Correct Answer:
Verified
Related Questions
Q10: In defining a member function whose declaration
Q11: A structure member is access using the
Q12: A C++ structure,or struct,like the C++ array,is
Q13: Carefully define mutator and accessor functions of
Q14: What is the error in the following
Q16: There is no aggregate initialization available for
Q17: A structure can have a member whose
Q18: A class type cannot be used in
Q19: A member of a structure or of
Q20: A structure variable can be defined directly