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

Given the code below, what is the most likely outcome at runtime?

#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"; }