Advertisements
Advertisements
Question
class x
{
int y;
public:
x(int z){y=z;} } x1[4];
int main()
{ x x2(10);
return 0;}
How many objects are created for the above program?
Options
10
14
5
2
MCQ
Solution
5
shaalaa.com
Creating Objects
Is there an error in this question or solution?