Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++threads and async basicsSingle-choice MCQ

What does this program print, given that std::async with the default launch policy is used and the future is not stored?

#include <future> #include <iostream> int main() { std::async(std::launch::async, []{ std::cout << "A"; }); std::async(std::launch::async, []{ std::cout << "B"; }); std::cout << "C"; }