Quiz: New Lines

What does this program print?

#include <iostream>

int main() {
    std::cout << "Tick";
    std::cout << "-tock" << std::endl;
    std::cout << "Ding\n" << "Dong\n";
}

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

3/8