Comprehension

Report a typo

What will be the output of the following code?

#include <iostream>

int main() {
    int x = 15, y = 10;

    std::cout << ((x <= 15) ? "A" : "") << ((y == 10) ? "B" : "C");

    return 0;
}
Select one or more options from the list

Create a free account to access the full topic