What will be printed out as a result of the following code execution:

#include <iostream>

int main(int argc, char* argv[])
{
    int try = 0;
    std::cout << try++;
    return 0;
}
Explanation
Compilation error will occur since try is a reserved keyword in C++.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes