What will the following code's execution print out?
#include <iostream>
void func(int num);
int main(void)
{
    func(5);
    return 0;
}
void func(int num)
{
    if(num)
        func(num-1);
    std::cout << num;
}

Follow CodeGalaxy

Mobile Beta

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