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 1d 16h 07m 42s1 days 16 hours 7 minutes 42 seconds.
Guide: C++ Interview Questions for HFT and Quant Developer Roles · C++ for Quant Trading: A Step-by-Step Roadmap
Examine the following code involving std::optional:
#include <optional>
#include <iostream>
std::optional<int> makeOptional() {
int x = 42;
return x;
}
int main() {
auto opt = makeOptional();
if (opt) {
std::cout << *opt;
}
}Which statement correctly describes the program behavior?