Which of the following member functions is not created b compiler automatically ?
What is expected value of Myscore for the following code ?
#include <stdlib.h>
#include <iostream.h>
void main()
{
randomize();
int score[] = {25,20,34,56,72,63};
int Myscore;
Myscore = score[2+random(2)];
cout<<Myscore;
}
In which of the following case copy constructor is not called ?
How many times copy constructor is called in the following code ?(Assuming that class test is already created)
test tfunc(test u)
{
test v(u);
test w = v;
return w;
}
void main()
{
test x;
test y = tfunc(x);
test z = tfunc(y);
}
what will be the size of object of class B ?
class A
{
int x;
protected :
int y;
public:
int z;
};
class B:private A
{
int b;
};