⚡ Build the skills to land top-paying quant jobs. Offer ends in 26d 11h 49m 28s26 days 11 hours 49 minutes 28 seconds.
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?