Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in --d --h --m --s-- days -- hours -- minutes -- seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 13d 21h 53m 50s13 days 21 hours 53 minutes 50 seconds.
Guide: Citadel Interview Questions: Citadel vs Citadel Securities Process · C++ Interview Questions for HFT and Quant Developer Roles
Observe the following class definition and usage. What output is produced?
#include <iostream>
class Sample {
int x;
int y;
int sum;
public:
Sample(int x = 2, int y = 3) : x(x + 4), y(y + 5) {
sum = x + y;
}
void print() const {
std::cout << sum << x << y;
}
};
int main() {
Sample s(4);
s.print();
}