Question:

What is the output of this program?

    #include <iostream>
    using namespace std;
    void addprint()
    {
        static int s = 1;
        s++;
        cout << s;
    }
    int main()
    {
        addprint();
        addprint();
        addprint();
        return 0;
    }

 

Answers:


Keywords:

© 2017 QuizBucket.org