What will be printed out as a result of the following code's execution?

#include <iostream>

int main()
{
    int n = 10;
    for(;n--;) {
        std::cout << n;
    }
    return 0;
}
C++
C++ Quiz
Start Quiz

or Read more about C++ Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback