Bloomberg LP Interview Report
- 0of 0 votes
AnswersGo through all the C++ Qs put on careercup , in online test most of these Qs repeat .
- TopCoder February 26, 2010
// Online Test
class Someclass {
public:
int x;
public :
Someclass(int xx) : x(xx) { }
Someclass(const Someclass& a) { x = a.x ; x++;}
Someclass& operator =(const Someclass& a1) { x = a1.x ; x--;}
};
int main( )
{
/*Someclass a(4);
Someclass b = a;
}
Q. What will be output| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ - 0of 0 votes
Answersclass Foo {
- TopCoder February 26, 2010
public:
void virtual abc() throw (int , double, long) {
};
};
class DFoo : public Foo {
public :
void abc() throw (double , int , long ) {}
};
// Will it compile
int main(){
DFoo d;
return 0;
}| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ - 0of 0 votes
Answerschar a[] = " ";
- TopCoder February 26, 2010
Q. What will be sizeof(a)| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.